summaryrefslogtreecommitdiff
path: root/community/usb_modeswitch
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-04-07 00:01:17 +0000
committerroot <root@rshg054.dnsready.net>2012-04-07 00:01:17 +0000
commit3d65494a8eda056377febda4642ce992e69a9371 (patch)
treedae57e04ca5f7d7490acbde87206eaa62695109d /community/usb_modeswitch
parentd9c1fc1bcca8fd5cd3566fc6b183fe23065778bc (diff)
Sat Apr 7 00:01:16 UTC 2012
Diffstat (limited to 'community/usb_modeswitch')
-rw-r--r--community/usb_modeswitch/PKGBUILD13
1 files changed, 5 insertions, 8 deletions
diff --git a/community/usb_modeswitch/PKGBUILD b/community/usb_modeswitch/PKGBUILD
index bc38aa87d..e71648846 100644
--- a/community/usb_modeswitch/PKGBUILD
+++ b/community/usb_modeswitch/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 62881 2012-01-28 14:42:08Z spupykin $
+# $Id: PKGBUILD 68929 2012-04-06 00:04:17Z dreisner $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=usb_modeswitch
pkgver=1.2.2
-pkgrel=1
+pkgrel=2
_pkgdata=20120120
pkgdesc="Activating switchable USB devices on Linux."
arch=('i686' 'x86_64')
@@ -28,15 +28,12 @@ build() {
package() {
cd $srcdir/usb-modeswitch-$pkgver/
- mkdir -p $pkgdir/lib/udev/usb_modeswitch
+ mkdir -p $pkgdir/usr/lib/udev
mkdir -p $pkgdir/etc
mkdir -p $pkgdir/usr/share/man/man1
- make DESTDIR=${pkgdir} install
-
- mv ${pkgdir}/lib/udev/usb_modeswitch/usb_modeswitch.sh ${pkgdir}/lib/udev/usb_modeswitch.sh
- rmdir ${pkgdir}/lib/udev/usb_modeswitch
- mv ${pkgdir}/lib/udev/usb_modeswitch.sh ${pkgdir}/lib/udev/usb_modeswitch
+ make DESTDIR=${pkgdir} UDEVDIR=${pkgdir}/usr/lib/udev install
+
cp $srcdir/usb-modeswitch-${pkgver}-device_reference.txt $pkgdir/etc/usb_modeswitch.setup
cd $srcdir/usb-modeswitch-data-${_pkgdata}