wok-next annotate lzma/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 | e7a485521d6a |
children |
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" |
al@20905 | 9 WEB_SITE="https://tukaani.org/lzma/" |
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" |
al@21020 | 15 SPLIT="lzlib lzlib-dev" |
gokhlayeh@8197 | 16 |
al@20443 | 17 compile_rules() { |
gokhlayeh@8197 | 18 cd CPP/7zip/Compress/LZMA_Alone |
al@19601 | 19 |
gokhlayeh@7634 | 20 # Remove copyright message. |
gokhlayeh@7634 | 21 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp |
gokhlayeh@7634 | 22 |
al@20640 | 23 dos2unix makefile.gcc |
al@20640 | 24 sed -i 's|^CFLAGS =.*|& -fPIC|' makefile.gcc |
al@20640 | 25 |
al@20640 | 26 title 'Making lzma' |
al@19601 | 27 make -f makefile.gcc lzma 2>/dev/null |
al@20640 | 28 title 'Making liblz.so' |
pascal@1514 | 29 make -f makefile.gcc liblz.so.1.0.0 && |
al@20640 | 30 title 'Making lzma (again)' && |
al@20640 | 31 make -f makefile.gcc lzma || return 1 |
al@20640 | 32 |
al@20640 | 33 # install libs |
al@20640 | 34 install -Dm755 liblz.so.1.0.0 $install/lib/liblz.so.1.0.0 |
al@20640 | 35 ln -s liblz.so.1.0.0 $install/lib/liblz.so |
al@20640 | 36 ln -s liblz.so.1.0.0 $install/lib/liblz.so.1 |
al@20640 | 37 |
al@20640 | 38 # install bins |
al@20640 | 39 install -Dm755 lzma-shared $install/usr/bin/lzma-alone |
al@20640 | 40 install -Dm755 $stuff/lzma $install/usr/bin/lzma |
al@20640 | 41 ln -s lzma $install/usr/bin/unlzma |
al@20640 | 42 ln -s lzma $install/usr/bin/lzcat |
al@20640 | 43 |
al@20640 | 44 # install header |
al@20640 | 45 install -Dm644 lzlib.h $install/usr/include/lzlib.h |
pankso@126 | 46 } |
pankso@126 | 47 |
al@20443 | 48 genpkg_rules() { |
pascal@20181 | 49 case $PACKAGE in |
al@20443 | 50 lzma) |
al@20640 | 51 copy bin/ |
al@20640 | 52 DEPENDS="lzlib" |
al@20443 | 53 TAGS="compression archive" |
al@20443 | 54 ;; |
al@20443 | 55 lzlib) |
al@20640 | 56 copy lib/ |
al@20443 | 57 CAT="base-system|library" |
al@20640 | 58 DEPENDS="zlib" |
al@20443 | 59 ;; |
al@20640 | 60 *-dev) |
al@20640 | 61 copy @dev |
al@20443 | 62 ;; |
pascal@20181 | 63 esac |
pankso@126 | 64 } |