wok view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="zstd"
4 VERSION="1.5.6"
5 CATEGORY="base-system"
6 TAGS="compression"
7 SHORT_DESC="Zstandard - Fast and efficient compression algorithm."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="BSD GPL2"
10 WEB_SITE="https://github.com/facebook/zstd"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/facebook/zstd/archive/v$VERSION.tar.gz"
15 DEPENDS="liblzma lz4-lib"
16 BUILD_DEPENDS="grep liblzma-dev lz4-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LDFLAGS="$LDFLAGS -lrt"
30 cd $src/lib
31 make &&
32 make PREFIX=/usr DESTDIR=$DESTDIR install
34 cd $src/programs
35 make &&
36 make PREFIX=/usr DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib
43 mkdir -p $install/usr/share
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/lib/*.so* $fs/usr/lib/
47 cp -a $src/doc $install/usr/share
48 }