wok-current view usb-modeswitch/receipt @ rev 14505
Add miniupnpc
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 12 09:44:28 2013 +0200 (2013-05-12) |
parents | b2a632fc9587 |
children | 380ffe05937a |
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 WEB_SITE="http://www.draisberghof.de/usb_modeswitch/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 EXTRA_SOURCE_FILES="$PACKAGE_DATA.tar.bz2 usb_modeswitch.setup"
12 WGET_URL="http://www.draisberghof.de/usb_modeswitch/$TARBALL"
13 TAGS="3g-modem"
15 DEPENDS="libusb-compat"
16 BUILD_DEPENDS="libusb-compat-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 mkdir -p $DESTDIR/etc $DESTDIR/lib/udev/usb_modeswitch $DESTDIR/usr/share/man/man1
23 make && make install
25 # download data
26 [ -s $SOURCES_REPOSITORY/$PACKAGE_DATA.tar.bz2 ] ||
27 wget -P $SOURCES_REPOSITORY $WEB_SITE/$PACKAGE_DATA.tar.bz2
28 [ -d $PACKAGE_DATA ] ||
29 tar -xjf $SOURCES_REPOSITORY/$PACKAGE_DATA.tar.bz2
31 # download setup config
32 [ -s $SOURCES_REPOSITORY/usb_modeswitch.setup ] ||
33 wget -O $SOURCES_REPOSITORY/usb_modeswitch.setup \
34 $WEB_SITE/device_reference.txt
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr $fs/etc/usb_modeswitch.d $fs/lib/udev/rules.d
41 cp -a $install/etc $fs
42 cp -a $install/lib $fs
43 cp -a $install/var $fs
44 cp -a $install/usr/sbin $fs/usr
45 cp -a $src/$PACKAGE_DATA/usb_modeswitch.d/* $fs/etc/usb_modeswitch.d
46 cp -a $src/$PACKAGE_DATA/40-usb_modeswitch.rules $fs/lib/udev/rules.d
47 cp -a $SOURCES_REPOSITORY/usb_modeswitch.setup $fs/etc/
48 chown -R root.root $fs
49 }