wok view zstd/receipt @ rev 24004
Up tazinst (110)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 17 17:23:12 2021 +0000 (2021-01-17) |
parents | 314dd7281637 |
children | 296c9ca231aa |
line source
1 # SliTaz package receipt.
3 PACKAGE="zstd"
4 VERSION="1.4.5"
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 }