wok view usb-modeswitch/receipt @ rev 23540

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