wok view zstd/receipt @ rev 24039

modified stuff/get-vivaldi
author Hans-G?nter Theisgen
date Tue Apr 13 17:46:04 2021 +0100 (2021-04-13)
parents 296c9ca231aa
children 05230b2f15de
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|.*/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 }