aboutsummaryrefslogtreecommitdiffstats
path: root/main/usb-modeswitch
diff options
context:
space:
mode:
Diffstat (limited to 'main/usb-modeswitch')
-rw-r--r--main/usb-modeswitch/APKBUILD19
1 files changed, 14 insertions, 5 deletions
diff --git a/main/usb-modeswitch/APKBUILD b/main/usb-modeswitch/APKBUILD
index 03458f373c..d5ac3ce68e 100644
--- a/main/usb-modeswitch/APKBUILD
+++ b/main/usb-modeswitch/APKBUILD
@@ -1,16 +1,16 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=usb-modeswitch
pkgver=2.2.0
-pkgrel=1
+pkgrel=2
_pkgdata=20140529
pkgdesc="A mode switching tool for controlling flip flop (multiple device) USB gear"
url="http://www.draisberghof.de/usb_modeswitch/"
arch="all"
license="GPL2+"
-depends="tcl"
-makedepends="libusb-compat-dev coreutils"
+depends=""
+makedepends="libusb-compat-dev coreutils tcl"
install=
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc $pkgname-udev"
source="http://www.draisberghof.de/usb_modeswitch/${pkgname}-${pkgver}.tar.bz2
http://www.draisberghof.de/usb_modeswitch/${pkgname}-data-${_pkgdata}.tar.bz2
usb_modeswitch.setup"
@@ -20,7 +20,7 @@ prepare() {
cd "$_builddir"
make clean || return 1
sed -i -e 's/--mode=/-m/' Makefile || return 1
-
+
cd ../${pkgname}-data-${_pkgdata}
# sed -i -e 's%install -m644 -t $(PREFIX)/share/usb_modeswitch ./usb_modeswitch.d/*%cp -R $(PREFIX)/share/usb_modeswitch/* ./usb_modeswitch.d/%' Makefile || return 1
sed -i -e 's/--mode=/-m/' Makefile || return 1
@@ -48,6 +48,15 @@ package() {
cp $srcdir/usb_modeswitch.setup $pkgdir/etc/ || return 1
}
+udev() {
+ pkgdesc="udev support for usb-modeswitch"
+ depends="tcl eudev $pkgname=$pkgver-r$pkgrel"
+ mkdir -p "$subpkgdir"/usr/sbin
+ mv "$pkgdir"/lib "$subpkgdir"/ || return 1
+ mv "$pkgdir"/usr/sbin/usb_modeswitch_dispatcher \
+ "$subpkgdir"/usr/sbin/
+}
+
md5sums="f323fe700edd6ea404c40934ddf32b22 usb-modeswitch-2.2.0.tar.bz2
dff94177781298aaf0b3c2a3c3dea6b2 usb-modeswitch-data-20140529.tar.bz2
9a25756669937ac86774bb55733f09cd usb_modeswitch.setup"