wok annotate usb-modeswitch/receipt @ rev 21344

updated libxkbcommon and libxkbcommon-dev (0.4.1 -> 0.8.4)
author Hans-G?nter Theisgen
date Sat Apr 20 15:23:09 2019 +0100 (2019-04-20)
parents 380ffe05937a
children 37c51a23ae10
rev   line source
pankso@12080 1 # SliTaz package receipt.
pankso@12080 2
pankso@12080 3 PACKAGE="usb-modeswitch"
mojo@19524 4 VERSION="2.4.0"
mojo@19524 5 PACKAGE_DATA="${PACKAGE}-data-20160612"
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
mojo@19524 16 DEPENDS="libusb"
mojo@19524 17 BUILD_DEPENDS="libusb-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
mojo@19524 24 make && make install-static
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 }