wok annotate zstd/receipt @ rev 25692

dropbear (2024.84) fixes terrapin-attack, zstd (1.5.6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 21 11:33:54 2024 +0000 (7 months ago)
parents 343c093ad221
children
rev   line source
pascal@17541 1 # SliTaz package receipt.
pascal@17541 2
pascal@17541 3 PACKAGE="zstd"
pascal@25692 4 VERSION="1.5.6"
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"
pascal@25552 10 WEB_SITE="https://github.com/facebook/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@25597 18 # What is the latest version available today?
pascal@22825 19 current_version()
pascal@22825 20 {
pascal@22841 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25597 22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@22825 23 }
pascal@22825 24
pascal@17541 25 # Rules to configure and make the package.
pascal@17541 26 compile_rules()
pascal@17541 27 {
pascal@20118 28 export LDFLAGS="$LDFLAGS -lrt"
Hans-G?nter@22335 29
pascal@17541 30 cd $src/lib
pascal@17541 31 make &&
pascal@18336 32 make PREFIX=/usr DESTDIR=$DESTDIR install
Hans-G?nter@22335 33
pascal@17541 34 cd $src/programs
pascal@17541 35 make &&
pascal@18336 36 make PREFIX=/usr DESTDIR=$DESTDIR install
pascal@17541 37 }
pascal@17541 38
pascal@17541 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17541 40 genpkg_rules()
pascal@17541 41 {
Hans-G?nter@22335 42 mkdir -p $fs/usr/lib
Hans-G?nter@22335 43 mkdir -p $install/usr/share
Hans-G?nter@22335 44
Hans-G?nter@22335 45 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22335 46 cp -a $install/usr/lib/*.so* $fs/usr/lib/
Hans-G?nter@22335 47 cp -a $src/doc $install/usr/share
pascal@17541 48 }