wok-next rev 20329

Up hiredis, iniparser
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Nov 14 11:32:29 2017 +0200 (2017-11-14)
parents 6a3f3d91ab26
children 5659c9704f8c
files hiredis/receipt iniparser/receipt
line diff
     1.1 --- a/hiredis/receipt	Tue Nov 14 03:01:24 2017 +0200
     1.2 +++ b/hiredis/receipt	Tue Nov 14 11:32:29 2017 +0200
     1.3 @@ -1,26 +1,29 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="hiredis"
     1.8  VERSION="0.13.3"
     1.9  CATEGORY="misc"
    1.10 -SHORT_DESC="Minimalistic C client for Redis >= 1.2."
    1.11 +SHORT_DESC="Minimalistic C client for Redis >= 1.2"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="BSD"
    1.14 +WEB_SITE="https://github.com/redis/hiredis"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="https://github.com/redis/hiredis"
    1.18  WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
    1.19  
    1.20 -BUILD_DEPENDS="wget"
    1.21 +SPLIT="hiredis-dev"
    1.22  
    1.23 -# Rules to configure and make the package.
    1.24 -compile_rules()
    1.25 -{
    1.26 -	make && make PREFIX=/usr DESTDIR=$DESTDIR install
    1.27 +compile_rules() {
    1.28 +	make &&
    1.29 +	make \
    1.30 +		PREFIX=/usr \
    1.31 +		DESTDIR=$DESTDIR \
    1.32 +		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 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.40 +genpkg_rules() {
    1.41 +	case $PACKAGE in
    1.42 +		hiredis) copy @std;;
    1.43 +		*-dev)   copy @dev;;
    1.44 +	esac
    1.45  }
     2.1 --- a/iniparser/receipt	Tue Nov 14 03:01:24 2017 +0200
     2.2 +++ b/iniparser/receipt	Tue Nov 14 11:32:29 2017 +0200
     2.3 @@ -1,27 +1,35 @@
     2.4 -# SliTaz package receipt.
     2.5 +# SliTaz package receipt v2.
     2.6  
     2.7  PACKAGE="iniparser"
     2.8 -VERSION="3.1"
     2.9 +VERSION="4.1"
    2.10  CATEGORY="system-tools"
    2.11 -SHORT_DESC="Free stand-alone ini file parsing library."
    2.12 +SHORT_DESC="Free stand-alone ini file parsing library"
    2.13  MAINTAINER="erjo@slitaz.org"
    2.14  LICENSE="MIT"
    2.15  WEB_SITE="http://ndevilla.free.fr/iniparser/"
    2.16 +
    2.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.18 -WGET_URL="http://ndevilla.free.fr/iniparser/$TARBALL"
    2.19 +WGET_URL="https://github.com/ndevilla/iniparser/archive/v$VERSION.tar.gz"
    2.20  
    2.21 -DEPENDS=""
    2.22 -BUILD_DEPENDS=""
    2.23 +SPLIT="iniparser-dev"
    2.24  
    2.25 -# Rules to configure and make the package.
    2.26 -compile_rules()
    2.27 -{
    2.28 -	make
    2.29 +compile_rules() {
    2.30 +	make || return 1
    2.31 +
    2.32 +	mkdir -p $install/usr/lib $install/usr/include
    2.33 +	cp -a *.so*   $install/usr/lib
    2.34 +	cp    *.*a    $install/usr/lib
    2.35 +	cp    src/*.h $install/usr/include
    2.36 +	cook_pick_docs html/ AUTHORS README.md LICENSE FAQ*
    2.37  }
    2.38  
    2.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.40 -genpkg_rules()
    2.41 -{
    2.42 -	mkdir -p $fs/usr/lib
    2.43 -	cp -a $src/*.so* $fs/usr/lib
    2.44 +genpkg_rules() {
    2.45 +	case $PACKAGE in
    2.46 +		iniparser)
    2.47 +			copy @std
    2.48 +			;;
    2.49 +		*-dev)
    2.50 +			copy @dev
    2.51 +			;;
    2.52 +	esac
    2.53  }