wok-next view xz/receipt @ rev 20861

gnutls: up (3.5.18); add libpsl and publicsuffix-list; sed: up (4.5); tar: up (1.30); tcpdump: up (4.9.2); wget: up (1.19.5); xz: up (5.2.4)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jun 28 00:30:02 2018 +0300 (2018-06-28)
parents 10df65db91ad
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="xz"
4 VERSION="5.2.4"
5 CATEGORY="base-system"
6 SHORT_DESC="XZ Utils"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="PublicDomain LGPL2.1 GPL2 GPL3"
9 WEB_SITE="https://tukaani.org/xz/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/xz.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$WEB_SITE$TARBALL"
15 BUILD_DEPENDS="gettext"
16 SPLIT="xz-tools xz liblzma xz-dev"
18 compile_rules() {
19 ./configure \
20 --disable-static \
21 --enable-small \
22 $CONFIGURE_ARGS &&
23 fix libtool &&
24 make &&
25 make install || return 1
27 mkdir -p $install/bin $install/lib
28 for i in lzma unlzma lzcat xz unxz xzcat; do
29 mv $install/usr/bin/$i $install/bin
30 done
31 mv $install/usr/lib/liblzma.so.* $install/lib
32 ln -sf ../../lib/$(readlink $install/usr/lib/liblzma.so) \
33 $install/usr/lib/liblzma.so
34 }
36 genpkg_rules() {
37 case $PACKAGE in
38 xz-tools)
39 copy /usr/bin/
40 CAT="utilities|misc commandline utilities"
41 DEPENDS="liblzma"
42 ;;
43 xz)
44 copy bin/ @rm
45 DEPENDS="liblzma"
46 TAGS="LFS compression archive"
47 ;;
48 liblzma)
49 copy liblzma.so*
50 CAT="libs|library"
51 DEPENDS=" "
52 ;;
53 xz-dev)
54 copy @dev
55 rm -r $fs/usr/share/
56 ;;
57 esac
58 }