wok-undigest view usb-modeswitch/receipt @ rev 626
Add: libgdal
author | Eric Joseph-Alexandre < erjo@slitaz.org> |
---|---|
date | Thu Feb 02 20:28:31 2012 +0100 (2012-02-02) |
parents | |
children | d77d9e4f477e |
line source
1 # SliTaz package receipt.
3 PACKAGE="usb-modeswitch"
4 VERSION="1.1.2"
5 PACKAGE_DATA="${PACKAGE}-data-20100418"
6 CATEGORY="network"
7 MAINTAINER="jozee@slitaz.org"
8 SHORT_DESC="Activating switchable USB devices on Linux."
9 WEB_SITE="http://www.draisberghof.de/usb_modeswitch/"
10 DEPENDS="libusb"
11 BUILD_DEPENDS="gcc make libusb-dev "
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="$WEB_SITE/$TARBALL"
14 TAGS="3g-modem"
17 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src/
22 make clean
23 mkdir -p $PWD/_pkg/etc $PWD/_pkg/lib/udev/usb_modeswitch $PWD/_pkg/usr/share/man/man1
24 make &&
25 make DESTDIR=$PWD/_pkg install
27 # download data
28 [ -d $PACKAGE_DATA ] || wget $WEB_SITE/${PACKAGE_DATA}.tar.bz2
29 [ -d $PACKAGE_DATA ] || tar -xjf ${PACKAGE_DATA}.tar.bz2
31 # download setup config
32 [ -f usb_modeswitch.setup ] || wget $WEB_SITE/usb_modeswitch.setup
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr \
40 $fs/etc/usb_modeswitch.d \
41 $fs/lib/udev/rules.d
43 cp -a $_pkg/etc $fs
44 cp -a $_pkg/usr/sbin $fs/usr
45 cp -a $_pkg/lib/udev/* $fs/lib/udev
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 }