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

Sergej Pupykin spupykin at archlinux.org
Sun Jul 19 11:16:12 UTC 2020


    Date: Sunday, July 19, 2020 @ 11:16:11
  Author: spupykin
Revision: 664552

archrelease: copy trunk to community-x86_64

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-19 11:16:03 UTC (rev 664551)
+++ PKGBUILD	2020-07-19 11:16:11 UTC (rev 664552)
@@ -1,51 +0,0 @@
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-
-pkgname=usb_modeswitch
-pkgver=2.6.0
-pkgrel=2
-_pkgdata=20191128
-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'
-            '3f039b60791c21c7cb15c7986cac89650f076dc274798fa242231b910785eaf9'
-            '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
-}

Copied: usb_modeswitch/repos/community-x86_64/PKGBUILD (from rev 664551, usb_modeswitch/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-19 11:16:11 UTC (rev 664552)
@@ -0,0 +1,51 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=usb_modeswitch
+pkgver=2.6.1
+pkgrel=1
+_pkgdata=20191128
+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=('5195d9e136e52f658f19e9f93e4f982b1b67bffac197d0a455cd8c2cd245fa34'
+            '3f039b60791c21c7cb15c7986cac89650f076dc274798fa242231b910785eaf9'
+            '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