wok-current view usb-modeswitch/receipt @ rev 13492
Add; mondo$
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Fri Oct 12 23:26:16 2012 +0200 (2012-10-12) |
parents | d4f38f8df84f |
children | b2a632fc9587 |
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 WGET_URL="http://www.draisberghof.de/usb_modeswitch/$TARBALL"
12 TAGS="3g-modem"
14 DEPENDS="libusb-compat"
15 BUILD_DEPENDS="libusb-compat-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 mkdir -p $DESTDIR/etc $DESTDIR/lib/udev/usb_modeswitch $DESTDIR/usr/share/man/man1
22 make && make install
24 # download data
25 [ -s $SOURCES_REPOSITORY/$PACKAGE_DATA.tar.bz2 ] ||
26 wget -P $SOURCES_REPOSITORY $WEB_SITE/$PACKAGE_DATA.tar.bz2
27 [ -d $PACKAGE_DATA ] ||
28 tar -xjf $SOURCES_REPOSITORY/$PACKAGE_DATA.tar.bz2
30 # download setup config
31 [ -s $SOURCES_REPOSITORY/usb_modeswitch.setup ] ||
32 wget -O $SOURCES_REPOSITORY/usb_modeswitch.setup \
33 $WEB_SITE/device_reference.txt
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr $fs/etc/usb_modeswitch.d $fs/lib/udev/rules.d
40 cp -a $install/etc $fs
41 cp -a $install/lib $fs
42 cp -a $install/var $fs
43 cp -a $install/usr/sbin $fs/usr
44 cp -a $src/$PACKAGE_DATA/usb_modeswitch.d/* $fs/etc/usb_modeswitch.d
45 cp -a $src/$PACKAGE_DATA/40-usb_modeswitch.rules $fs/lib/udev/rules.d
46 cp -a $SOURCES_REPOSITORY/usb_modeswitch.setup $fs/etc/
47 chown -R root.root $fs
48 }