wok-next diff libusb/receipt @ rev 20593

Up gpm (1.20.7)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Apr 14 16:28:35 2018 +0300 (2018-04-14)
parents f463de72afe3
children 5841522533ec
line diff
     1.1 --- a/libusb/receipt	Sun Jun 18 04:38:10 2017 +0300
     1.2 +++ b/libusb/receipt	Sat Apr 14 16:28:35 2018 +0300
     1.3 @@ -1,23 +1,23 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="libusb"
     1.8 -VERSION="1.0.20"
     1.9 +VERSION="1.0.21"
    1.10  CATEGORY="system-tools"
    1.11  SHORT_DESC="Library used by some applications for USB device access"
    1.12  MAINTAINER="pankso@slitaz.org"
    1.13  LICENSE="LGPL2.1"
    1.14  WEB_SITE="http://libusb.info/"
    1.15 -HOST_ARCH="i486 arm"
    1.16 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/libusb.html"
    1.17  
    1.18  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.19 -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.20 +WGET_URL="https://github.com/libusb/libusb/releases/download/v$VERSION/$TARBALL"
    1.21  
    1.22 -DEPENDS="eudev"
    1.23  BUILD_DEPENDS="eudev-dev"
    1.24 +SPLIT="libusb-dev"
    1.25  
    1.26 -# Rules to configure and make the package.
    1.27 -compile_rules()
    1.28 -{
    1.29 +compile_rules() {
    1.30 +	sed -i "s/^PROJECT_LOGO/#&/" doc/doxygen.cfg.in
    1.31 +
    1.32  	# Results are unstable, please keep `make -j1`
    1.33  	./configure \
    1.34  		--disable-static \
    1.35 @@ -25,8 +25,15 @@
    1.36  	make -j1 && make install
    1.37  }
    1.38  
    1.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.40 -genpkg_rules()
    1.41 -{
    1.42 -	copy *.so*
    1.43 +genpkg_rules() {
    1.44 +	case $PACKAGE in
    1.45 +		libusb)
    1.46 +			copy *.so*
    1.47 +			DEPENDS="eudev"
    1.48 +			;;
    1.49 +		*-dev)
    1.50 +			copy @dev
    1.51 +			DEPENDS="libusb eudev-dev"
    1.52 +			;;
    1.53 +	esac
    1.54  }