wok-next diff libcap-ng/receipt @ rev 20433

mupdf: update patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 05 15:11:20 2018 +0100 (2018-02-05)
parents 6c3718ca17b6
children 0ec6086e21d6
line diff
     1.1 --- a/libcap-ng/receipt	Sat Nov 09 17:34:23 2013 +0000
     1.2 +++ b/libcap-ng/receipt	Mon Feb 05 15:11:20 2018 +0100
     1.3 @@ -1,32 +1,36 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="libcap-ng"
     1.8 -VERSION="0.6.6"
     1.9 +VERSION="0.7.8"
    1.10  CATEGORY="security"
    1.11 -SHORT_DESC="New generation libcap library."
    1.12 +SHORT_DESC="New generation libcap library"
    1.13  MAINTAINER="erjo@slitaz.org"
    1.14  LICENSE="GPL2 LGPL2.1"
    1.15  WEB_SITE="http://people.redhat.com/sgrubb/libcap-ng/"
    1.16 +
    1.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.18  WGET_URL="http://people.redhat.com/sgrubb/libcap-ng/$TARBALL"
    1.19  
    1.20 -DEPENDS=""
    1.21 -BUILD_DEPENDS="python"
    1.22 -PROVIDE="libcap"
    1.23 +BUILD_DEPENDS="python-dev swig coreutils-file-format"
    1.24 +SPLIT="libcap-ng-python libcap-ng-dev"
    1.25  
    1.26 -# Rules to configure and make the package.
    1.27 -compile_rules()
    1.28 -{
    1.29 -	cd $src
    1.30 -	
    1.31 +compile_rules() {
    1.32  	./configure $CONFIGURE_ARGS && make && make install
    1.33  }
    1.34  
    1.35 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.36 -genpkg_rules()
    1.37 -{
    1.38 -	mkdir -p $fs/usr/lib
    1.39 -	
    1.40 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.41 -	cp -a $install/usr/bin $fs/usr
    1.42 +genpkg_rules() {
    1.43 +	case $PACKAGE in
    1.44 +		libcap-ng)
    1.45 +			copy bin/ libcap-ng.so*
    1.46 +			PROVIDE="libcap"
    1.47 +			;;
    1.48 +		*-python)
    1.49 +			copy _capng.so capng.py
    1.50 +			CAT="python|Python bindings"
    1.51 +			DEPENDS="libcap-ng python"
    1.52 +			;;
    1.53 +		*-dev)
    1.54 +			copy @dev
    1.55 +			;;
    1.56 +	esac
    1.57  }