wok diff usb-modeswitch/receipt @ rev 22086

updated usb-modeswitch (2.4.0 -> 2.5.2)
author Hans-G?nter Theisgen
date Thu Oct 31 13:09:03 2019 +0100 (2019-10-31)
parents fcec81f66f99
children 3983ce4388d7
line diff
     1.1 --- a/usb-modeswitch/receipt	Sun Nov 27 20:58:51 2016 -0500
     1.2 +++ b/usb-modeswitch/receipt	Thu Oct 31 13:09:03 2019 +0100
     1.3 @@ -1,17 +1,18 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="usb-modeswitch"
     1.7 -VERSION="2.4.0"
     1.8 -PACKAGE_DATA="${PACKAGE}-data-20160612"
     1.9 +VERSION="2.5.2"
    1.10 +PACKAGE_DATA="${PACKAGE}-data-20170806"
    1.11  CATEGORY="system-tools"
    1.12 +TAGS="3g-modem"
    1.13  SHORT_DESC="Handling Mode-Switching USB Devices on Linux."
    1.14  MAINTAINER="pankso@slitaz.org"
    1.15  LICENSE="GPL2"
    1.16  WEB_SITE="http://www.draisberghof.de/usb_modeswitch/"
    1.17 +
    1.18  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.19  EXTRA_SOURCE_FILES="$PACKAGE_DATA.tar.bz2 usb_modeswitch.setup"
    1.20 -WGET_URL="http://www.draisberghof.de/usb_modeswitch/$TARBALL"
    1.21 -TAGS="3g-modem"
    1.22 +WGET_URL="http://www.draisberghof.de/$PACKAGE/$TARBALL"
    1.23  
    1.24  DEPENDS="libusb"
    1.25  BUILD_DEPENDS="libusb-dev"
    1.26 @@ -19,9 +20,12 @@
    1.27  # Rules to configure and make the package.
    1.28  compile_rules()
    1.29  {
    1.30 -	cd $src
    1.31 -	mkdir -p $DESTDIR/etc $DESTDIR/lib/udev/usb_modeswitch $DESTDIR/usr/share/man/man1
    1.32 -	make && make install-static
    1.33 +	mkdir -p $DESTDIR/etc
    1.34 +	mkdir -p $DESTDIR/lib/udev/usb_modeswitch
    1.35 +	mkdir -p $DESTDIR/usr/share/man/man1
    1.36 +
    1.37 +	make &&
    1.38 +	make install-static
    1.39  
    1.40  	# download data
    1.41  	[ -s $SOURCES_REPOSITORY/$PACKAGE_DATA.tar.bz2 ] ||
    1.42 @@ -38,13 +42,16 @@
    1.43  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.44  genpkg_rules()
    1.45  {
    1.46 -	mkdir -p $fs/usr $fs/etc/usb_modeswitch.d  $fs/lib/udev/rules.d
    1.47 -	cp -a $install/etc $fs
    1.48 -	cp -a $install/lib $fs
    1.49 -	cp -a $install/var $fs
    1.50 -	cp -a $install/usr/sbin $fs/usr
    1.51 -	cp -a $src/$PACKAGE_DATA/usb_modeswitch.d/* $fs/etc/usb_modeswitch.d
    1.52 +	mkdir -p $fs/usr
    1.53 +	mkdir -p $fs/etc/usb_modeswitch.d
    1.54 +	mkdir -p $fs/lib/udev/rules.d
    1.55 +
    1.56 +	cp -a $install/etc				$fs
    1.57 +	cp -a $install/lib				$fs
    1.58 +	cp -a $install/var				$fs
    1.59 +	cp -a $install/usr/sbin				$fs/usr
    1.60 +	cp -a $src/$PACKAGE_DATA/usb_modeswitch.d/*	$fs/etc/usb_modeswitch.d
    1.61  	cp -a $src/$PACKAGE_DATA/40-usb_modeswitch.rules $fs/lib/udev/rules.d
    1.62 -	cp -a $SOURCES_REPOSITORY/usb_modeswitch.setup $fs/etc/
    1.63 +	cp -a $SOURCES_REPOSITORY/usb_modeswitch.setup	$fs/etc/
    1.64  	chown -R root.root $fs
    1.65  }