wok view zstd/receipt @ rev 25428

updated xarchiver (0.5.4.14 -> 0.5.4.18)
author Hans-G?nter Theisgen
date Thu Aug 18 17:12:42 2022 +0100 (2022-08-18)
parents 12b20ec07196
children 4e2caf3cd17b
line source
1 # SliTaz package receipt.
3 PACKAGE="zstd"
4 VERSION="1.5.2"
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/Cyan4973/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 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 export LDFLAGS="$LDFLAGS -lrt"
29 cd $src/lib
30 make &&
31 make PREFIX=/usr DESTDIR=$DESTDIR install
33 cd $src/programs
34 make &&
35 make PREFIX=/usr DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib
42 mkdir -p $install/usr/share
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/lib/*.so* $fs/usr/lib/
46 cp -a $src/doc $install/usr/share
47 }