wok-next view usb-modeswitch/receipt @ rev 20854
Add xa, libicns; up vice (3.2)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jun 26 14:16:09 2018 +0300 (2018-06-26) |
parents | fcec81f66f99 |
children | d5aab818505e |
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 $SRC/$PACKAGE_DATA.tar.bz2 ] ||
28 wget -P $SRC $WEB_SITE/$PACKAGE_DATA.tar.bz2
29 [ -d $PACKAGE_DATA ] ||
30 tar -xjf $SRC/$PACKAGE_DATA.tar.bz2
32 # download setup config
33 [ -s $SRC/usb_modeswitch.setup ] ||
34 wget -O $SRC/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 $SRC/usb_modeswitch.setup $fs/etc/
49 chown -R root.root $fs
50 }