wok-current view usb-modeswitch/receipt @ rev 13249

usb-modeswitch: add datas
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 14 14:24:15 2012 +0200 (2012-08-14)
parents 6b7d9d4baac3
children d4f38f8df84f
line source
1 # SliTaz package receipt.
3 PACKAGE="usb-modeswitch"
4 VERSION="1.2.3"
5 PACKAGE_DATA="${PACKAGE}-data-20120531"
6 CATEGORY="system-tools"
7 SHORT_DESC="Handling Mode-Switching USB Devices on Linux."
8 MAINTAINER="pankso@slitaz.org"
9 WEB_SITE="http://www.draisberghof.de/usb_modeswitch/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="http://www.draisberghof.de/usb_modeswitch/$TARBALL"
12 TAGS="3g-modem"
14 DEPENDS="libusb-compat"
15 BUILD_DEPENDS="libusb-compat-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 make && make install
23 # download data
24 [ -s $SOURCES_REPOSITORY/$PACKAGE_DATA.tar.bz2 ] ||
25 wget -P $SOURCES_REPOSITORY $WEB_SITE/$PACKAGE_DATA.tar.bz2
26 [ -d $PACKAGE_DATA ] ||
27 tar -xjf $SOURCES_REPOSITORY/$PACKAGE_DATA.tar.bz2
29 # download setup config
30 [ -s $SOURCES_REPOSITORY/usb_modeswitch.setup ] ||
31 wget -O $SOURCES_REPOSITORY/usb_modeswitch.setup \
32 $WEB_SITE/device_reference.txt
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $install/etc $fs
40 cp -a $install/lib $fs
41 cp -a $install/var $fs
42 cp -a $install/usr/sbin $fs/usr
43 cp -a $src/$PACKAGE_DATA/usb_modeswitch.d/* $fs/etc/usb_modeswitch.d
44 cp -a $src/$PACKAGE_DATA/40-usb_modeswitch.rules $fs/lib/udev/rules.d
45 cp -a $SOURCES_REPOSITORY/usb_modeswitch.setup $fs/etc/
46 }