wok-current view zstd/receipt @ rev 24380

blender: added implicite build dependency libboost-locale
author Hans-G?nter Theisgen
date Sun Feb 06 10:08:38 2022 +0100 (2022-02-06)
parents 05230b2f15de
children 1f9238437d3b
line source
1 # SliTaz package receipt.
3 PACKAGE="zstd"
4 VERSION="1.5.0"
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 }