wok annotate zstd/receipt @ rev 24666
created recipes for double-conversion and double-conversion-dev
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 11 15:40:49 2022 +0100 (2022-03-11) |
parents | 05230b2f15de |
children | 1f9238437d3b |
rev | line source |
---|---|
pascal@17541 | 1 # SliTaz package receipt. |
pascal@17541 | 2 |
pascal@17541 | 3 PACKAGE="zstd" |
pascal@24056 | 4 VERSION="1.5.0" |
pascal@17541 | 5 CATEGORY="base-system" |
Hans-G?nter@22335 | 6 TAGS="compression" |
pascal@17541 | 7 SHORT_DESC="Zstandard - Fast and efficient compression algorithm." |
pascal@17541 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20062 | 9 LICENSE="BSD GPL2" |
Hans-G?nter@22335 | 10 WEB_SITE="https://github.com/Cyan4973/zstd" |
Hans-G?nter@22335 | 11 |
pascal@18336 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20425 | 13 WGET_URL="https://github.com/facebook/zstd/archive/v$VERSION.tar.gz" |
pascal@17541 | 14 |
Hans-G?nter@22335 | 15 DEPENDS="liblzma lz4-lib" |
Hans-G?nter@22335 | 16 BUILD_DEPENDS="grep liblzma-dev lz4-dev" |
pascal@20118 | 17 |
pascal@22825 | 18 current_version() |
pascal@22825 | 19 { |
pascal@22841 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24034 | 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@22825 | 22 } |
pascal@22825 | 23 |
pascal@17541 | 24 # Rules to configure and make the package. |
pascal@17541 | 25 compile_rules() |
pascal@17541 | 26 { |
pascal@20118 | 27 export LDFLAGS="$LDFLAGS -lrt" |
Hans-G?nter@22335 | 28 |
pascal@17541 | 29 cd $src/lib |
pascal@17541 | 30 make && |
pascal@18336 | 31 make PREFIX=/usr DESTDIR=$DESTDIR install |
Hans-G?nter@22335 | 32 |
pascal@17541 | 33 cd $src/programs |
pascal@17541 | 34 make && |
pascal@18336 | 35 make PREFIX=/usr DESTDIR=$DESTDIR install |
pascal@17541 | 36 } |
pascal@17541 | 37 |
pascal@17541 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17541 | 39 genpkg_rules() |
pascal@17541 | 40 { |
Hans-G?nter@22335 | 41 mkdir -p $fs/usr/lib |
Hans-G?nter@22335 | 42 mkdir -p $install/usr/share |
Hans-G?nter@22335 | 43 |
Hans-G?nter@22335 | 44 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22335 | 45 cp -a $install/usr/lib/*.so* $fs/usr/lib/ |
Hans-G?nter@22335 | 46 cp -a $src/doc $install/usr/share |
pascal@17541 | 47 } |