wok-current annotate usb-modeswitch/receipt @ rev 23173
updated mercurial (4.9.1 -> 5.3.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 18 10:22:51 2020 +0100 (2020-03-18) |
parents | 3983ce4388d7 |
children | 2a0479881723 |
rev | line source |
---|---|
pankso@12080 | 1 # SliTaz package receipt. |
pankso@12080 | 2 |
pankso@12080 | 3 PACKAGE="usb-modeswitch" |
Hans-G?nter@22086 | 4 VERSION="2.5.2" |
Hans-G?nter@22086 | 5 PACKAGE_DATA="${PACKAGE}-data-20170806" |
pankso@12080 | 6 CATEGORY="system-tools" |
Hans-G?nter@22086 | 7 TAGS="3g-modem" |
pankso@12080 | 8 SHORT_DESC="Handling Mode-Switching USB Devices on Linux." |
pankso@12080 | 9 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 10 LICENSE="GPL2" |
pascal@22632 | 11 WEB_SITE="https://www.draisberghof.de/usb_modeswitch/" |
Hans-G?nter@22086 | 12 |
pankso@12080 | 13 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@14353 | 14 EXTRA_SOURCE_FILES="$PACKAGE_DATA.tar.bz2 usb_modeswitch.setup" |
Hans-G?nter@22088 | 15 WGET_URL="http://www.draisberghof.de/usb_modeswitch/$TARBALL" |
pankso@12080 | 16 |
mojo@19524 | 17 DEPENDS="libusb" |
mojo@19524 | 18 BUILD_DEPENDS="libusb-dev" |
pankso@12080 | 19 |
pankso@12080 | 20 # Rules to configure and make the package. |
pankso@12080 | 21 compile_rules() |
pankso@12080 | 22 { |
Hans-G?nter@22086 | 23 mkdir -p $DESTDIR/etc |
Hans-G?nter@22086 | 24 mkdir -p $DESTDIR/lib/udev/usb_modeswitch |
Hans-G?nter@22086 | 25 mkdir -p $DESTDIR/usr/share/man/man1 |
Hans-G?nter@22086 | 26 |
Hans-G?nter@22086 | 27 make && |
Hans-G?nter@22086 | 28 make install-static |
pascal@13249 | 29 |
pascal@13249 | 30 # download data |
pascal@13249 | 31 [ -s $SOURCES_REPOSITORY/$PACKAGE_DATA.tar.bz2 ] || |
pascal@13249 | 32 wget -P $SOURCES_REPOSITORY $WEB_SITE/$PACKAGE_DATA.tar.bz2 |
pascal@13249 | 33 [ -d $PACKAGE_DATA ] || |
pascal@13249 | 34 tar -xjf $SOURCES_REPOSITORY/$PACKAGE_DATA.tar.bz2 |
pascal@13249 | 35 |
pascal@13249 | 36 # download setup config |
pascal@13249 | 37 [ -s $SOURCES_REPOSITORY/usb_modeswitch.setup ] || |
pascal@13249 | 38 wget -O $SOURCES_REPOSITORY/usb_modeswitch.setup \ |
pascal@13249 | 39 $WEB_SITE/device_reference.txt |
pankso@12080 | 40 } |
pankso@12080 | 41 |
pankso@12080 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12080 | 43 genpkg_rules() |
pankso@12080 | 44 { |
Hans-G?nter@22086 | 45 mkdir -p $fs/usr |
Hans-G?nter@22086 | 46 mkdir -p $fs/etc/usb_modeswitch.d |
Hans-G?nter@22086 | 47 mkdir -p $fs/lib/udev/rules.d |
Hans-G?nter@22086 | 48 |
Hans-G?nter@22086 | 49 cp -a $install/etc $fs |
Hans-G?nter@22086 | 50 cp -a $install/lib $fs |
Hans-G?nter@22086 | 51 cp -a $install/var $fs |
Hans-G?nter@22086 | 52 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@22086 | 53 cp -a $src/$PACKAGE_DATA/usb_modeswitch.d/* $fs/etc/usb_modeswitch.d |
pascal@13249 | 54 cp -a $src/$PACKAGE_DATA/40-usb_modeswitch.rules $fs/lib/udev/rules.d |
Hans-G?nter@22086 | 55 cp -a $SOURCES_REPOSITORY/usb_modeswitch.setup $fs/etc/ |
pascal@13251 | 56 chown -R root.root $fs |
pankso@12080 | 57 } |