2010-12-21 20:59:04 +01:00
|
|
|
# Description: Activating switchable USB devices on Linux
|
|
|
|
# URL: http://www.draisberghof.de/usb_modeswitch/
|
|
|
|
# Maintainer: Moritz Wilhelmy, moritz plus crux at wzff dot de
|
|
|
|
# Depends on: libusb
|
|
|
|
# Nice to have: tclsh
|
2010-12-16 19:57:54 +01:00
|
|
|
|
|
|
|
name=usb_modeswitch
|
|
|
|
version=1.1.5
|
2010-12-21 20:59:04 +01:00
|
|
|
release=2
|
2010-12-16 19:57:54 +01:00
|
|
|
source=("http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-$version.tar.bz2"
|
|
|
|
"http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-20101202.tar.bz2")
|
|
|
|
|
|
|
|
build () {
|
|
|
|
mkdir -p $PKG/lib/udev/usb_modeswitch
|
|
|
|
cd usb-modeswitch-$version
|
|
|
|
make DESTDIR=$PKG MANDIR=$PKG/usr/man/man1 all install
|
|
|
|
|
|
|
|
cd ../usb-modeswitch-data-*
|
2010-12-21 20:59:04 +01:00
|
|
|
sed -i 's:RUN+="usb_modeswitch:RUN+="/usr/sbin/usb_modeswitch:g' \
|
|
|
|
40-usb_modeswitch.rules
|
2010-12-16 19:57:54 +01:00
|
|
|
make DESTDIR=$PKG MANDIR=$PKG/usr/man/man1 install
|
|
|
|
}
|