wok-next diff xz/receipt @ rev 19568
Up: m4, make, patch, perl, sed, tar, texinfo, util-linux, xz. The end of the Chapter 5.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Dec 21 23:21:13 2016 +0200 (2016-12-21) |
parents | fdd9d234450c |
children | 35e3c24d2100 |
line diff
1.1 --- a/xz/receipt Mon Jul 04 11:33:24 2016 -0400 1.2 +++ b/xz/receipt Wed Dec 21 23:21:13 2016 +0200 1.3 @@ -1,33 +1,46 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="xz" 1.7 -VERSION="5.2.1" 1.8 +VERSION="5.2.2" 1.9 CATEGORY="base-system" 1.10 SHORT_DESC="General-purpose data compressor with a high compression ratio." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 LICENSE="PublicDomain LGPL2.1 GPL2 GPL3" 1.13 -TARBALL="$PACKAGE-$VERSION.tar.xz" 1.14 -WEB_SITE="http://tukaani.org/xz" 1.15 -WGET_URL="$WEB_SITE/$TARBALL" 1.16 +WEB_SITE="http://tukaani.org/xz/" 1.17 TAGS="compression archive" 1.18 HOST_ARCH="i486 arm x86_64" 1.19 1.20 +TARBALL="$PACKAGE-$VERSION.tar.xz" 1.21 +WGET_URL="$WEB_SITE$TARBALL" 1.22 + 1.23 DEPENDS="liblzma" 1.24 -BUILD_DEPENDS="" 1.25 +BUILD_DEPENDS="gettext" 1.26 +SPLIT="xz-tools liblzma liblzma-dev" 1.27 1.28 # Rules to configure and make the package. 1.29 compile_rules() 1.30 { 1.31 + sed -e '/mf\.buffer = NULL/a next->coder->mf.size = 0;' \ 1.32 + -i $src/src/liblzma/lz/lz_encoder.c 1.33 + 1.34 ./configure \ 1.35 - --enable-dynamic=yes \ 1.36 + --disable-static \ 1.37 + --docdir=/usr/share/doc/xz-$VERSION \ 1.38 --enable-small \ 1.39 $CONFIGURE_ARGS && 1.40 make && make install 1.41 + 1.42 + mkdir -p $install/bin $install/lib 1.43 + for i in lzma unlzma lzcat xz unxz xzcat; do 1.44 + mv $install/usr/bin/$i $install/bin 1.45 + done 1.46 + mv $install/usr/lib/liblzma.so.* $install/lib 1.47 + ln -sf ../../lib/$(readlink $install/usr/lib/liblzma.so) \ 1.48 + $install/usr/lib/liblzma.so 1.49 } 1.50 1.51 # Rules to gen a SliTaz package suitable for Tazpkg. 1.52 genpkg_rules() 1.53 { 1.54 - mkdir -p $fs/usr/bin $fs/usr/lib 1.55 - cp -a $install/usr/bin/xz $fs/usr/bin 1.56 + cp -a $install/bin $install/lib $fs 1.57 }