wok view zstd/receipt @ rev 20461
py3k: fix build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 10 18:41:29 2018 +0200 (2018-10-10) |
parents | 7b15fbf27388 |
children | f0484014527d |
line source
1 # SliTaz package receipt.
3 PACKAGE="zstd"
4 VERSION="1.3.6"
5 CATEGORY="base-system"
6 SHORT_DESC="Zstandard - Fast and efficient compression algorithm."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/Cyan4973/zstd"
11 WGET_URL="https://github.com/facebook/zstd/archive/v$VERSION.tar.gz"
12 TAGS="compression"
14 DEPENDS="lz4-lib liblzma"
15 BUILD_DEPENDS="lz4-dev liblzma-dev grep"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 export LDFLAGS="$LDFLAGS -lrt"
21 cd $src/lib
22 make &&
23 make PREFIX=/usr DESTDIR=$DESTDIR install
24 cd $src/programs
25 make &&
26 make PREFIX=/usr DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib $install/usr/share
33 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/lib/*.so* $fs/usr/lib/
35 cp -a $src/doc $install/usr/share
36 }