wok-undigest diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/usb-modeswitch/receipt Thu Feb 02 20:28:31 2012 +0100 1.3 @@ -0,0 +1,49 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="usb-modeswitch" 1.7 +VERSION="1.1.2" 1.8 +PACKAGE_DATA="${PACKAGE}-data-20100418" 1.9 +CATEGORY="network" 1.10 +MAINTAINER="jozee@slitaz.org" 1.11 +SHORT_DESC="Activating switchable USB devices on Linux." 1.12 +WEB_SITE="http://www.draisberghof.de/usb_modeswitch/" 1.13 +DEPENDS="libusb" 1.14 +BUILD_DEPENDS="gcc make libusb-dev " 1.15 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.16 +WGET_URL="$WEB_SITE/$TARBALL" 1.17 +TAGS="3g-modem" 1.18 + 1.19 + 1.20 +# Rules to configure and make the package. 1.21 + 1.22 +compile_rules() 1.23 +{ 1.24 + cd $src/ 1.25 + make clean 1.26 + mkdir -p $PWD/_pkg/etc $PWD/_pkg/lib/udev/usb_modeswitch $PWD/_pkg/usr/share/man/man1 1.27 + make && 1.28 + make DESTDIR=$PWD/_pkg install 1.29 + 1.30 + # download data 1.31 + [ -d $PACKAGE_DATA ] || wget $WEB_SITE/${PACKAGE_DATA}.tar.bz2 1.32 + [ -d $PACKAGE_DATA ] || tar -xjf ${PACKAGE_DATA}.tar.bz2 1.33 + 1.34 + # download setup config 1.35 + [ -f usb_modeswitch.setup ] || wget $WEB_SITE/usb_modeswitch.setup 1.36 + 1.37 +} 1.38 + 1.39 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.40 +genpkg_rules() 1.41 +{ 1.42 + mkdir -p $fs/usr \ 1.43 + $fs/etc/usb_modeswitch.d \ 1.44 + $fs/lib/udev/rules.d 1.45 + 1.46 + cp -a $_pkg/etc $fs 1.47 + cp -a $_pkg/usr/sbin $fs/usr 1.48 + cp -a $_pkg/lib/udev/* $fs/lib/udev 1.49 + cp -a $src/$PACKAGE_DATA/usb_modeswitch.d/* $fs/etc/usb_modeswitch.d 1.50 + cp -a $src/$PACKAGE_DATA/40-usb_modeswitch.rules $fs/lib/udev/rules.d 1.51 + cp -a $src/usb_modeswitch.setup $fs/etc/ 1.52 +}