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