wok-next view xz/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | 523cce42deab |
children | a43eb412173d |
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-dev"
16 SPLIT="$PACKAGE-tools $PACKAGE liblzma $PACKAGE-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 }