wok view usb-modeswitch/receipt @ rev 19983

Up openvpn (2.3.17)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 22 17:37:32 2017 +0200 (2017-06-22)
parents 380ffe05937a
children 37c51a23ae10
line source
1 # SliTaz package receipt.
3 PACKAGE="usb-modeswitch"
4 VERSION="2.4.0"
5 PACKAGE_DATA="${PACKAGE}-data-20160612"
6 CATEGORY="system-tools"
7 SHORT_DESC="Handling Mode-Switching USB Devices on Linux."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://www.draisberghof.de/usb_modeswitch/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 EXTRA_SOURCE_FILES="$PACKAGE_DATA.tar.bz2 usb_modeswitch.setup"
13 WGET_URL="http://www.draisberghof.de/usb_modeswitch/$TARBALL"
14 TAGS="3g-modem"
16 DEPENDS="libusb"
17 BUILD_DEPENDS="libusb-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 mkdir -p $DESTDIR/etc $DESTDIR/lib/udev/usb_modeswitch $DESTDIR/usr/share/man/man1
24 make && make install-static
26 # download data
27 [ -s $SOURCES_REPOSITORY/$PACKAGE_DATA.tar.bz2 ] ||
28 wget -P $SOURCES_REPOSITORY $WEB_SITE/$PACKAGE_DATA.tar.bz2
29 [ -d $PACKAGE_DATA ] ||
30 tar -xjf $SOURCES_REPOSITORY/$PACKAGE_DATA.tar.bz2
32 # download setup config
33 [ -s $SOURCES_REPOSITORY/usb_modeswitch.setup ] ||
34 wget -O $SOURCES_REPOSITORY/usb_modeswitch.setup \
35 $WEB_SITE/device_reference.txt
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr $fs/etc/usb_modeswitch.d $fs/lib/udev/rules.d
42 cp -a $install/etc $fs
43 cp -a $install/lib $fs
44 cp -a $install/var $fs
45 cp -a $install/usr/sbin $fs/usr
46 cp -a $src/$PACKAGE_DATA/usb_modeswitch.d/* $fs/etc/usb_modeswitch.d
47 cp -a $src/$PACKAGE_DATA/40-usb_modeswitch.rules $fs/lib/udev/rules.d
48 cp -a $SOURCES_REPOSITORY/usb_modeswitch.setup $fs/etc/
49 chown -R root.root $fs
50 }