forked from ports/contrib
36 lines
821 B
Plaintext
36 lines
821 B
Plaintext
# 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
|
|
|
|
name=usb_modeswitch
|
|
version=2.2.0
|
|
release=1
|
|
source=(http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-$version.tar.bz2
|
|
http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-20140529.tar.bz2)
|
|
|
|
build() {
|
|
cd usb-modeswitch-$version
|
|
|
|
sed -i 's|/usr/sbin/usb_mode|/usr/bin/usb_mode|g' \
|
|
usb_modeswitch.{conf,tcl,sh}
|
|
|
|
make clean
|
|
make SBINDIR=/usr/bin
|
|
|
|
make \
|
|
DESTDIR=$PKG \
|
|
UDEVDIR=$PKG/lib/udev \
|
|
MANDIR=$PKG/usr/man/man1 \
|
|
install
|
|
|
|
cd $SRC/usb-modeswitch-data-*
|
|
|
|
make \
|
|
DESTDIR=$PKG \
|
|
RULESDIR=$PKG/lib/udev/rules.d \
|
|
MANDIR=$PKG/usr/man/man1 \
|
|
install
|
|
}
|