[arch-commits] Commit in usb_modeswitch/repos/community-x86_64 (PKGBUILD PKGBUILD)

Sergej Pupykin spupykin at archlinux.org
Mon Dec 2 20:37:19 UTC 2019


    Date: Monday, December 2, 2019 @ 20:37:18
  Author: spupykin
Revision: 534765

archrelease: copy trunk to community-x86_64

Added:
  usb_modeswitch/repos/community-x86_64/PKGBUILD
    (from rev 534764, usb_modeswitch/trunk/PKGBUILD)
Deleted:
  usb_modeswitch/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  103 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 51 insertions(+), 52 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-02 20:37:10 UTC (rev 534764)
+++ PKGBUILD	2019-12-02 20:37:18 UTC (rev 534765)
@@ -1,52 +0,0 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-
-pkgname=usb_modeswitch
-pkgver=2.5.2
-pkgrel=1
-_pkgdata=20170806
-pkgdesc="Activating switchable USB devices on Linux."
-arch=('x86_64')
-url="http://www.draisberghof.de/usb_modeswitch/"
-license=('GPL')
-depends=('libusb' 'tcl')
-makedepends=('gcc' 'make')
-backup=("etc/$pkgname.conf")
-source=("http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-${pkgver}.tar.bz2"
-	"http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-${_pkgdata}.tar.bz2"
-	"usb-modeswitch-${pkgver}-device_reference.txt::http://www.draisberghof.de/usb_modeswitch/device_reference.txt")
-sha256sums=('abffac09c87eacd78e101545967dc25af7e989745b4276756d45dbf4008a2ea6'
-            'ce413ef2a50e648e9c81bc3ea6110e7324a8bf981034fc9ec4467d3562563c2c'
-            '846b45a82a31c9755ab86d9c051e706aff445e1e793575b7ae195a4edeb4d594')
-
-prepare() {
-  cd "$srcdir"/usb-modeswitch-$pkgver/
-  sed -i 's|/usr/sbin/usb_mode|/usr/bin/usb_mode|g' usb_modeswitch.{conf,tcl,sh}
-}
-
-build() {
-  cd "$srcdir"/usb-modeswitch-$pkgver/
-  make clean
-  make SBINDIR=/usr/bin
-}
-
-package() {
-  cd "$srcdir"/usb-modeswitch-$pkgver/
-
-  mkdir -p "$pkgdir"/usr/lib/udev
-  mkdir -p "$pkgdir"/etc
-  mkdir -p "$pkgdir"/usr/share/man/man1
-  mkdir -p "$pkgdir"/usr/lib/systemd/system
-
-  make \
-    DESTDIR="$pkgdir" \
-    UDEVDIR="$pkgdir"/usr/lib/udev \
-    SBINDIR="$pkgdir"/usr/bin \
-    SYSDIR="$pkgdir"/usr/lib/systemd/system \
-    install
-
-  cp "$srcdir"/usb-modeswitch-${pkgver}-device_reference.txt "$pkgdir"/etc/usb_modeswitch.setup
-
-  cd "$srcdir"/usb-modeswitch-data-${_pkgdata}
-  make DESTDIR="$pkgdir" install RULESDIR="$pkgdir"/usr/lib/udev/rules.d
-}

Copied: usb_modeswitch/repos/community-x86_64/PKGBUILD (from rev 534764, usb_modeswitch/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-12-02 20:37:18 UTC (rev 534765)
@@ -0,0 +1,51 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=usb_modeswitch
+pkgver=2.6.0
+pkgrel=1
+_pkgdata=20170806
+pkgdesc="Activating switchable USB devices on Linux."
+arch=('x86_64')
+url="http://www.draisberghof.de/usb_modeswitch/"
+license=('GPL')
+depends=('libusb' 'tcl')
+makedepends=('gcc' 'make')
+backup=("etc/$pkgname.conf")
+source=("http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-${pkgver}.tar.bz2"
+	"http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-${_pkgdata}.tar.bz2"
+	"usb-modeswitch-${pkgver}-device_reference.txt::http://www.draisberghof.de/usb_modeswitch/device_reference.txt")
+sha256sums=('c215236e6bada6e659fc195a31d611ea298a4bdb4d57a0d68c553b56585f8ba3'
+            'ce413ef2a50e648e9c81bc3ea6110e7324a8bf981034fc9ec4467d3562563c2c'
+            '846b45a82a31c9755ab86d9c051e706aff445e1e793575b7ae195a4edeb4d594')
+
+prepare() {
+  cd "$srcdir"/usb-modeswitch-$pkgver/
+  sed -i 's|/usr/sbin/usb_mode|/usr/bin/usb_mode|g' usb_modeswitch{.conf,_dispatcher.tcl,.sh}
+}
+
+build() {
+  cd "$srcdir"/usb-modeswitch-$pkgver/
+  make clean
+  make SBINDIR=/usr/bin
+}
+
+package() {
+  cd "$srcdir"/usb-modeswitch-$pkgver/
+
+  mkdir -p "$pkgdir"/usr/lib/udev
+  mkdir -p "$pkgdir"/etc
+  mkdir -p "$pkgdir"/usr/share/man/man1
+  mkdir -p "$pkgdir"/usr/lib/systemd/system
+
+  make \
+    DESTDIR="$pkgdir" \
+    UDEVDIR="$pkgdir"/usr/lib/udev \
+    SBINDIR="$pkgdir"/usr/bin \
+    SYSDIR="$pkgdir"/usr/lib/systemd/system \
+    install
+
+  cp "$srcdir"/usb-modeswitch-${pkgver}-device_reference.txt "$pkgdir"/etc/usb_modeswitch.setup
+
+  cd "$srcdir"/usb-modeswitch-data-${_pkgdata}
+  make DESTDIR="$pkgdir" install RULESDIR="$pkgdir"/usr/lib/udev/rules.d
+}


More information about the arch-commits mailing list