wok annotate zstd/receipt @ rev 25443
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 03 09:28:15 2022 +0000 (2022-09-03) |
parents | 12b20ec07196 |
children | 4e2caf3cd17b |
rev | line source |
---|---|
pascal@17541 | 1 # SliTaz package receipt. |
pascal@17541 | 2 |
pascal@17541 | 3 PACKAGE="zstd" |
pascal@25042 | 4 VERSION="1.5.2" |
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 } |