wok-current annotate zstd/receipt @ rev 22825

Up rage (0.3.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 07 12:27:53 2020 +0100 (2020-02-07)
parents baef3c7bb141
children 314dd7281637
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@22825 20 wget -O - ${WGET_URL%/*}/ 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 }