wok-next diff zstd/receipt @ rev 20464

Combine receipts (final)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 07 19:43:44 2018 +0200 (2018-03-07)
parents 4458f0f34c92
children 6805cf8ff938
line diff
     1.1 --- a/zstd/receipt	Thu Sep 01 16:30:12 2016 +0200
     1.2 +++ b/zstd/receipt	Wed Mar 07 19:43:44 2018 +0200
     1.3 @@ -1,31 +1,36 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="zstd"
     1.8  VERSION="1.0.0"
     1.9  CATEGORY="base-system"
    1.10 -SHORT_DESC="Zstandard - Fast and efficient compression algorithm."
    1.11 +SHORT_DESC="Zstandard - Fast and efficient compression algorithm"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="BSD"
    1.14 +WEB_SITE="https://github.com/Cyan4973/zstd"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="https://github.com/Cyan4973/zstd"
    1.18  WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
    1.19 -TAGS="compression"
    1.20  
    1.21 -# Rules to configure and make the package.
    1.22 -compile_rules()
    1.23 -{
    1.24 +SPLIT="zstd-dev"
    1.25 +
    1.26 +compile_rules() {
    1.27  	cd $src/lib
    1.28  	make &&
    1.29 -	make PREFIX=/usr DESTDIR=$DESTDIR install
    1.30 +	make PREFIX=/usr DESTDIR=$DESTDIR install || return 1
    1.31 +
    1.32  	cd $src/programs
    1.33  	make &&
    1.34  	make PREFIX=/usr DESTDIR=$DESTDIR install
    1.35  }
    1.36  
    1.37 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.38 -genpkg_rules()
    1.39 -{
    1.40 -	mkdir -p $fs/usr/lib
    1.41 -	cp -a $install/usr/bin $fs/usr
    1.42 -	cp -a $install/usr/lib/*.so* $fs/usr/lib/
    1.43 +genpkg_rules() {
    1.44 +	case $PACKAGE in
    1.45 +		zstd)
    1.46 +			copy @std
    1.47 +			TAGS="compression"
    1.48 +			;;
    1.49 +		*-dev)
    1.50 +			copy @dev
    1.51 +			;;
    1.52 +	esac
    1.53  }