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

Sergej Pupykin spupykin at archlinux.org
Tue Mar 24 13:43:07 UTC 2020


    Date: Tuesday, March 24, 2020 @ 13:43:05
  Author: spupykin
Revision: 603833

archrelease: copy trunk to community-x86_64

Added:
  usb_modeswitch/repos/community-x86_64/PKGBUILD
    (from rev 603832, 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-03-24 13:42:55 UTC (rev 603832)
+++ PKGBUILD	2020-03-24 13:43:05 UTC (rev 603833)
@@ -1,51 +0,0 @@
-# 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
-}

Copied: usb_modeswitch/repos/community-x86_64/PKGBUILD (from rev 603832, usb_modeswitch/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-24 13:43:05 UTC (rev 603833)
@@ -0,0 +1,51 @@
+# 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
+}



More information about the arch-commits mailing list