wok-next annotate lzma/receipt @ rev 20222

memtest: typo
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Nov 05 17:29:21 2017 +0200 (2017-11-05)
parents 31b0fa204936
children 0e7893ac206d
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 TAGS="compression archive"
pankso@15944 11 HOST_ARCH="i486 arm"
pascal@15379 12
al@19601 13 TARBALL="lzma$(echo $VERSION | sed 's/\.//').tar.bz2"
al@19601 14 WGET_URL="$SF_MIRROR/sevenzip/$TARBALL"
al@19601 15
al@19601 16 BUILD_DEPENDS="zlib-dev"
pascal@20181 17 SPLIT="lzma lzlib lzlib-dev"
gokhlayeh@8197 18
pankso@15944 19 # Rules to configure and make the package.
pankso@15944 20 compile_rules()
gokhlayeh@8197 21 {
gokhlayeh@8197 22 if [ ! -f done.lzlib.u ]; then
slaxemulator@9700 23 patch -p0 < $stuff/lzlib.u || return 1
gokhlayeh@8197 24 touch done.lzlib.u
gokhlayeh@8197 25 fi
gokhlayeh@8197 26 cd CPP/7zip/Compress/LZMA_Alone
al@19601 27
pankso@15944 28 # Handle cross compilation
pankso@15944 29 case "$ARCH" in
pankso@15944 30 arm)
pankso@15944 31 sed -i s'/g++/arm-slitaz-linux-gnueabi-c++/' makefile.gcc
pankso@15944 32 sed -i s'/gcc/arm-slitaz-linux-gnueabi-gcc/' makefile.gcc ;;
pankso@15944 33 esac
gokhlayeh@7634 34
gokhlayeh@7634 35 # Remove copyright message.
gokhlayeh@7634 36 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp
gokhlayeh@7634 37
al@19601 38 make -f makefile.gcc lzma 2>/dev/null
pascal@1514 39 make -f makefile.gcc liblz.so.1.0.0 &&
pascal@1514 40 make -f makefile.gcc lzma
pankso@126 41 }
pankso@126 42
pankso@126 43 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@126 44 genpkg_rules()
pankso@126 45 {
pascal@20181 46 case $PACKAGE in
pascal@20181 47 lzma)
pascal@20181 48 DEPENDS="lzlib zlib gcc-lib-base"
pascal@20181 49 mkdir -p $fs/usr/bin
pascal@20181 50 cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzma-shared $fs/usr/bin/lzma-alone
pascal@20181 51 cp $stuff/lzma $fs/usr/bin
pascal@20181 52 chmod 755 $fs/usr/bin/lzma
pascal@20181 53 ln -s lzma $fs/usr/bin/unlzma
pascal@20181 54 ln -s lzma $fs/usr/bin/lzcat
pascal@20181 55 ;;
pascal@20181 56 lzlib-dev)
pascal@20181 57 mkdir -p $fs/usr/include
pascal@20181 58 cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzlib.h $fs/usr/include
pascal@20181 59 ;;
pascal@20181 60 lzlib)
al@20222 61 CAT="base-system|library"
pascal@20181 62 DEPENDS="zlib gcc-lib-base"
pascal@20181 63 mkdir -p $fs/lib
pascal@20181 64 cp -a $src/CPP/7zip/Compress/LZMA_Alone/liblz.so.1.0.0 $fs/lib
pascal@20181 65 ln -s liblz.so.1.0.0 $fs/lib/liblz.so
pascal@20181 66 ln -s liblz.so.1.0.0 $fs/lib/liblz.so.1
pascal@20181 67 ;;
pascal@20181 68 esac
pankso@126 69 }