wok view zstd/receipt @ rev 24007

Up zstd (1.4.8)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 29 15:34:50 2021 +0000 (2021-01-29)
parents ae9776c2d2b4
children 6b6d14c9f7e9
line source
1 # SliTaz package receipt.
3 PACKAGE="zstd"
4 VERSION="1.4.8"
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|.*archive/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 }