wok-next annotate lzma/receipt @ rev 20889
Check Repology info from y* to z* packages: complete
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Jul 15 10:27:39 2018 +0300 (2018-07-15) |
parents | 0a5b410586a2 |
children | e7a485521d6a |
rev | line source |
---|---|
pascal@20181 | 1 # SliTaz package receipt v2. |
pankso@126 | 2 |
pankso@126 | 3 PACKAGE="lzma" |
pascal@224 | 4 VERSION="4.57" |
pankso@210 | 5 CATEGORY="base-system" |
al@20222 | 6 SHORT_DESC="Compressor with a high compression ratio" |
pankso@126 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15379 | 8 LICENSE="LGPL2.1" |
pascal@224 | 9 WEB_SITE="http://sourceforge.net/projects/sevenzip/" |
pascal@15379 | 10 |
al@19601 | 11 TARBALL="lzma$(echo $VERSION | sed 's/\.//').tar.bz2" |
al@19601 | 12 WGET_URL="$SF_MIRROR/sevenzip/$TARBALL" |
al@19601 | 13 |
al@19601 | 14 BUILD_DEPENDS="zlib-dev" |
pascal@20181 | 15 SPLIT="lzma lzlib lzlib-dev" |
gokhlayeh@8197 | 16 |
al@20443 | 17 compile_rules() { |
gokhlayeh@8197 | 18 cd CPP/7zip/Compress/LZMA_Alone |
al@19601 | 19 |
pankso@15944 | 20 # Handle cross compilation |
pankso@15944 | 21 case "$ARCH" in |
pankso@15944 | 22 arm) |
pankso@15944 | 23 sed -i s'/g++/arm-slitaz-linux-gnueabi-c++/' makefile.gcc |
pankso@15944 | 24 sed -i s'/gcc/arm-slitaz-linux-gnueabi-gcc/' makefile.gcc ;; |
pankso@15944 | 25 esac |
gokhlayeh@7634 | 26 |
gokhlayeh@7634 | 27 # Remove copyright message. |
gokhlayeh@7634 | 28 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp |
gokhlayeh@7634 | 29 |
al@20640 | 30 dos2unix makefile.gcc |
al@20640 | 31 sed -i 's|^CFLAGS =.*|& -fPIC|' makefile.gcc |
al@20640 | 32 |
al@20640 | 33 title 'Making lzma' |
al@19601 | 34 make -f makefile.gcc lzma 2>/dev/null |
al@20640 | 35 title 'Making liblz.so' |
pascal@1514 | 36 make -f makefile.gcc liblz.so.1.0.0 && |
al@20640 | 37 title 'Making lzma (again)' && |
al@20640 | 38 make -f makefile.gcc lzma || return 1 |
al@20640 | 39 |
al@20640 | 40 # install libs |
al@20640 | 41 install -Dm755 liblz.so.1.0.0 $install/lib/liblz.so.1.0.0 |
al@20640 | 42 ln -s liblz.so.1.0.0 $install/lib/liblz.so |
al@20640 | 43 ln -s liblz.so.1.0.0 $install/lib/liblz.so.1 |
al@20640 | 44 |
al@20640 | 45 # install bins |
al@20640 | 46 install -Dm755 lzma-shared $install/usr/bin/lzma-alone |
al@20640 | 47 install -Dm755 $stuff/lzma $install/usr/bin/lzma |
al@20640 | 48 ln -s lzma $install/usr/bin/unlzma |
al@20640 | 49 ln -s lzma $install/usr/bin/lzcat |
al@20640 | 50 |
al@20640 | 51 # install header |
al@20640 | 52 install -Dm644 lzlib.h $install/usr/include/lzlib.h |
pankso@126 | 53 } |
pankso@126 | 54 |
al@20443 | 55 genpkg_rules() { |
pascal@20181 | 56 case $PACKAGE in |
al@20443 | 57 lzma) |
al@20640 | 58 copy bin/ |
al@20640 | 59 DEPENDS="lzlib" |
al@20443 | 60 TAGS="compression archive" |
al@20443 | 61 ;; |
al@20443 | 62 lzlib) |
al@20640 | 63 copy lib/ |
al@20443 | 64 CAT="base-system|library" |
al@20640 | 65 DEPENDS="zlib" |
al@20443 | 66 ;; |
al@20640 | 67 *-dev) |
al@20640 | 68 copy @dev |
al@20443 | 69 ;; |
pascal@20181 | 70 esac |
pankso@126 | 71 } |