wok-next view usb-modeswitch/receipt @ rev 21278

updated giac (1.4.9 -> 1.5.0.75)
author Hans-G?nter Theisgen
date Sat Dec 07 16:47:36 2019 +0100 (2019-12-07)
parents d43bf7aae921
children
line source
1 # SliTaz package receipt.
3 PACKAGE="usb-modeswitch"
4 VERSION="2.4.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Handling Mode-Switching USB Devices on Linux"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.draisberghof.de/usb_modeswitch/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://www.draisberghof.de/usb_modeswitch/$TARBALL"
13 PACKAGE_DATA="$PACKAGE-data-20160612"
14 EXTRA_SOURCE_FILES="$PACKAGE_DATA.tar.bz2 usb_modeswitch.setup"
16 BUILD_DEPENDS="libusb-dev"
18 compile_rules() {
19 mkdir -p $install/etc $install/lib/udev/usb_modeswitch $install/usr/share/man/man1
21 make &&
22 make install-static
24 # download data
25 [ -s $SRC/$PACKAGE_DATA.tar.bz2 ] ||
26 wget -P $SRC $WEB_SITE/$PACKAGE_DATA.tar.bz2
27 [ -d $PACKAGE_DATA ] ||
28 tar -xjf $SRC/$PACKAGE_DATA.tar.bz2
30 # download setup config
31 [ -s $SRC/usb_modeswitch.setup ] ||
32 wget -O $SRC/usb_modeswitch.setup \
33 $WEB_SITE/device_reference.txt
34 }
36 genpkg_rules() {
37 mkdir -p $fs/usr $fs/etc/usb_modeswitch.d $fs/lib/udev/rules.d
38 cp -a $install/etc $fs
39 cp -a $install/lib $fs
40 cp -a $install/var $fs
41 cp -a $install/usr/sbin $fs/usr
42 cp -a $src/$PACKAGE_DATA/usb_modeswitch.d/* $fs/etc/usb_modeswitch.d
43 cp -a $src/$PACKAGE_DATA/40-usb_modeswitch.rules $fs/lib/udev/rules.d
44 cp -a $SRC/usb_modeswitch.setup $fs/etc/
45 chown -R root.root $fs
46 DEPENDS="libusb"
47 TAGS="3g-modem"
48 }