wok-6.x annotate zstd/receipt @ rev 23160

updated lzsa (0.5.6 -> 1.2.0)
author Hans-G?nter Theisgen
date Tue Mar 17 14:14:41 2020 +0100 (2020-03-17)
parents 25f8eb393142
children ae9776c2d2b4
rev   line source
pascal@17541 1 # SliTaz package receipt.
pascal@17541 2
pascal@17541 3 PACKAGE="zstd"
Hans-G?nter@22335 4 VERSION="1.4.4"
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@22825 21 sed '/archive.*tar/!d;s|.*archive/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 }