wok-next view lzma/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | 0e7893ac206d |
children | 29ae397b760a |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lzma"
4 VERSION="4.57"
5 CATEGORY="base-system"
6 SHORT_DESC="Compressor with a high compression ratio"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="http://sourceforge.net/projects/sevenzip/"
11 TARBALL="lzma$(echo $VERSION | sed 's/\.//').tar.bz2"
12 WGET_URL="$SF_MIRROR/sevenzip/$TARBALL"
14 BUILD_DEPENDS="zlib-dev"
15 SPLIT="lzma lzlib lzlib-dev"
17 compile_rules() {
18 if [ ! -f done.lzlib.u ]; then
19 patch -p0 < $stuff/lzlib.u || return 1
20 touch done.lzlib.u
21 fi
22 cd CPP/7zip/Compress/LZMA_Alone
24 # Handle cross compilation
25 case "$ARCH" in
26 arm)
27 sed -i s'/g++/arm-slitaz-linux-gnueabi-c++/' makefile.gcc
28 sed -i s'/gcc/arm-slitaz-linux-gnueabi-gcc/' makefile.gcc ;;
29 esac
31 # Remove copyright message.
32 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp
34 make -f makefile.gcc lzma 2>/dev/null
35 make -f makefile.gcc liblz.so.1.0.0 &&
36 make -f makefile.gcc lzma &&
37 ln -s $src $install
38 }
40 genpkg_rules() {
41 case $PACKAGE in
42 lzma)
43 mkdir -p $fs/usr/bin
44 cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzma-shared $fs/usr/bin/lzma-alone
45 cp $stuff/lzma $fs/usr/bin
46 chmod 755 $fs/usr/bin/lzma
47 ln -s lzma $fs/usr/bin/unlzma
48 ln -s lzma $fs/usr/bin/lzcat
49 DEPENDS="lzlib zlib gcc-lib-base"
50 TAGS="compression archive"
51 ;;
52 lzlib)
53 mkdir -p $fs/lib
54 cp -a $src/CPP/7zip/Compress/LZMA_Alone/liblz.so.1.0.0 $fs/lib
55 ln -s liblz.so.1.0.0 $fs/lib/liblz.so
56 ln -s liblz.so.1.0.0 $fs/lib/liblz.so.1
57 CAT="base-system|library"
58 DEPENDS="zlib gcc-lib-base"
59 ;;
60 lzlib-dev)
61 mkdir -p $fs/usr/include
62 cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzlib.h $fs/usr/include
63 ;;
64 esac
65 }