blob: 7a6c4bb44ae1f63bfe67aee4efe4a71dfc5b3725 (
plain)
1 # Description: Activating switchable USB devices on Linux
2 # URL: http://www.draisberghof.de/usb_modeswitch/
3 # Maintainer: Moritz Wilhelmy, moritz plus crux at wzff dot de
4 # Depends on: libusb
5 # Nice to have: tclsh
6
7 name=usb_modeswitch
8 version=2.2.0
9 release=1
10 source=(http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-$version.tar.bz2
11 http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-20140529.tar.bz2)
12
13 build() {
14 cd usb-modeswitch-$version
15
16 sed -i 's|/usr/sbin/usb_mode|/usr/bin/usb_mode|g' \
17 usb_modeswitch.{conf,tcl,sh}
18
19 make clean
20 make SBINDIR=/usr/bin
21
22 make \
23 DESTDIR=$PKG \
24 UDEVDIR=$PKG/lib/udev \
25 MANDIR=$PKG/usr/man/man1 \
26 install
27
28 cd $SRC/usb-modeswitch-data-*
29
30 make \
31 DESTDIR=$PKG \
32 RULESDIR=$PKG/lib/udev/rules.d \
33 MANDIR=$PKG/usr/man/man1 \
34 install
35 }
|