summaryrefslogtreecommitdiff
path: root/community/usb_modeswitch
diff options
context:
space:
mode:
Diffstat (limited to 'community/usb_modeswitch')
-rw-r--r--community/usb_modeswitch/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/usb_modeswitch/PKGBUILD b/community/usb_modeswitch/PKGBUILD
new file mode 100644
index 000000000..5bfced05d
--- /dev/null
+++ b/community/usb_modeswitch/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 42961 2011-03-22 21:16:11Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgname=usb_modeswitch
+pkgver=1.1.7
+pkgrel=1
+_pkgdata=20110227
+pkgdesc="Activating switchable USB devices on Linux."
+arch=('i686' 'x86_64')
+url="http://www.draisberghof.de/usb_modeswitch/"
+license=('GPL')
+depends=('libusb-compat' '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")
+md5sums=('b75e42b7b2d30e9d4cbd5c159f925247'
+ '2f5e5bfa21a97b705a22f95bec367793')
+
+build() {
+ cd $srcdir
+
+ cd $srcdir/usb-modeswitch-$pkgver/
+ mkdir -p $pkgdir/lib/udev/usb_modeswitch
+ mkdir -p $pkgdir/etc
+ mkdir -p $pkgdir/usr/share/man/man1
+
+ make clean
+ make
+ 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
+ cp device_reference.txt $pkgdir/etc/usb_modeswitch.setup
+
+ cd $srcdir/usb-modeswitch-data-${_pkgdata}
+ make DESTDIR=$pkgdir install
+}