wok-next annotate usb-modeswitch/receipt @ rev 14883
python-http-parser: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 24 16:10:53 2013 +0000 (2013-07-24) |
parents | b2a632fc9587 |
children | 380ffe05937a |
rev | line source |
---|---|
pankso@12080 | 1 # SliTaz package receipt. |
pankso@12080 | 2 |
pankso@12080 | 3 PACKAGE="usb-modeswitch" |
pankso@12080 | 4 VERSION="1.2.3" |
pascal@13249 | 5 PACKAGE_DATA="${PACKAGE}-data-20120531" |
pankso@12080 | 6 CATEGORY="system-tools" |
pankso@12080 | 7 SHORT_DESC="Handling Mode-Switching USB Devices on Linux." |
pankso@12080 | 8 MAINTAINER="pankso@slitaz.org" |
pankso@12080 | 9 WEB_SITE="http://www.draisberghof.de/usb_modeswitch/" |
pankso@12080 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@14353 | 11 EXTRA_SOURCE_FILES="$PACKAGE_DATA.tar.bz2 usb_modeswitch.setup" |
pankso@12080 | 12 WGET_URL="http://www.draisberghof.de/usb_modeswitch/$TARBALL" |
pascal@13249 | 13 TAGS="3g-modem" |
pankso@12080 | 14 |
pankso@12080 | 15 DEPENDS="libusb-compat" |
pankso@12080 | 16 BUILD_DEPENDS="libusb-compat-dev" |
pankso@12080 | 17 |
pankso@12080 | 18 # Rules to configure and make the package. |
pankso@12080 | 19 compile_rules() |
pankso@12080 | 20 { |
pascal@13249 | 21 cd $src |
pascal@13250 | 22 mkdir -p $DESTDIR/etc $DESTDIR/lib/udev/usb_modeswitch $DESTDIR/usr/share/man/man1 |
pankso@12080 | 23 make && make install |
pascal@13249 | 24 |
pascal@13249 | 25 # download data |
pascal@13249 | 26 [ -s $SOURCES_REPOSITORY/$PACKAGE_DATA.tar.bz2 ] || |
pascal@13249 | 27 wget -P $SOURCES_REPOSITORY $WEB_SITE/$PACKAGE_DATA.tar.bz2 |
pascal@13249 | 28 [ -d $PACKAGE_DATA ] || |
pascal@13249 | 29 tar -xjf $SOURCES_REPOSITORY/$PACKAGE_DATA.tar.bz2 |
pascal@13249 | 30 |
pascal@13249 | 31 # download setup config |
pascal@13249 | 32 [ -s $SOURCES_REPOSITORY/usb_modeswitch.setup ] || |
pascal@13249 | 33 wget -O $SOURCES_REPOSITORY/usb_modeswitch.setup \ |
pascal@13249 | 34 $WEB_SITE/device_reference.txt |
pankso@12080 | 35 } |
pankso@12080 | 36 |
pankso@12080 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12080 | 38 genpkg_rules() |
pankso@12080 | 39 { |
pascal@13250 | 40 mkdir -p $fs/usr $fs/etc/usb_modeswitch.d $fs/lib/udev/rules.d |
pankso@12080 | 41 cp -a $install/etc $fs |
pankso@12080 | 42 cp -a $install/lib $fs |
pankso@12080 | 43 cp -a $install/var $fs |
pankso@12080 | 44 cp -a $install/usr/sbin $fs/usr |
pascal@13249 | 45 cp -a $src/$PACKAGE_DATA/usb_modeswitch.d/* $fs/etc/usb_modeswitch.d |
pascal@13249 | 46 cp -a $src/$PACKAGE_DATA/40-usb_modeswitch.rules $fs/lib/udev/rules.d |
pascal@13249 | 47 cp -a $SOURCES_REPOSITORY/usb_modeswitch.setup $fs/etc/ |
pascal@13251 | 48 chown -R root.root $fs |
pankso@12080 | 49 } |