wok annotate usb-modeswitch/receipt @ rev 18164

sakura: fix invisibility on startup with xf86-video-fbdev
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sat Jun 27 03:23:04 2015 +0300 (2015-06-27)
parents 68a11a4fb31d
children fcec81f66f99
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"
pascal@15000 9 LICENSE="GPL2"
pankso@12080 10 WEB_SITE="http://www.draisberghof.de/usb_modeswitch/"
pankso@12080 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@14353 12 EXTRA_SOURCE_FILES="$PACKAGE_DATA.tar.bz2 usb_modeswitch.setup"
pankso@12080 13 WGET_URL="http://www.draisberghof.de/usb_modeswitch/$TARBALL"
pascal@13249 14 TAGS="3g-modem"
pankso@12080 15
pankso@12080 16 DEPENDS="libusb-compat"
pankso@12080 17 BUILD_DEPENDS="libusb-compat-dev"
pankso@12080 18
pankso@12080 19 # Rules to configure and make the package.
pankso@12080 20 compile_rules()
pankso@12080 21 {
pascal@13249 22 cd $src
pascal@13250 23 mkdir -p $DESTDIR/etc $DESTDIR/lib/udev/usb_modeswitch $DESTDIR/usr/share/man/man1
pankso@12080 24 make && make install
pascal@13249 25
pascal@13249 26 # download data
pascal@13249 27 [ -s $SOURCES_REPOSITORY/$PACKAGE_DATA.tar.bz2 ] ||
pascal@13249 28 wget -P $SOURCES_REPOSITORY $WEB_SITE/$PACKAGE_DATA.tar.bz2
pascal@13249 29 [ -d $PACKAGE_DATA ] ||
pascal@13249 30 tar -xjf $SOURCES_REPOSITORY/$PACKAGE_DATA.tar.bz2
pascal@13249 31
pascal@13249 32 # download setup config
pascal@13249 33 [ -s $SOURCES_REPOSITORY/usb_modeswitch.setup ] ||
pascal@13249 34 wget -O $SOURCES_REPOSITORY/usb_modeswitch.setup \
pascal@13249 35 $WEB_SITE/device_reference.txt
pankso@12080 36 }
pankso@12080 37
pankso@12080 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@12080 39 genpkg_rules()
pankso@12080 40 {
pascal@13250 41 mkdir -p $fs/usr $fs/etc/usb_modeswitch.d $fs/lib/udev/rules.d
pankso@12080 42 cp -a $install/etc $fs
pankso@12080 43 cp -a $install/lib $fs
pankso@12080 44 cp -a $install/var $fs
pankso@12080 45 cp -a $install/usr/sbin $fs/usr
pascal@13249 46 cp -a $src/$PACKAGE_DATA/usb_modeswitch.d/* $fs/etc/usb_modeswitch.d
pascal@13249 47 cp -a $src/$PACKAGE_DATA/40-usb_modeswitch.rules $fs/lib/udev/rules.d
pascal@13249 48 cp -a $SOURCES_REPOSITORY/usb_modeswitch.setup $fs/etc/
pascal@13251 49 chown -R root.root $fs
pankso@12080 50 }