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

Add xsnow: happy new year!
author Lucas Levrel <llevrel@yahoo.fr>
date Sun Jan 10 21:57:16 2016 +0100 (2016-01-10)
parents 68a11a4fb31d
children fcec81f66f99
line source
1 # SliTaz package receipt.
3 PACKAGE="usb-modeswitch"
4 VERSION="1.2.3"
5 PACKAGE_DATA="${PACKAGE}-data-20120531"
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-compat"
17 BUILD_DEPENDS="libusb-compat-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
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 }