wok-next diff 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 |
line diff
1.1 --- a/lzma/receipt Mon Mar 26 13:35:23 2018 +0200 1.2 +++ b/lzma/receipt Sun Jul 15 10:27:39 2018 +0300 1.3 @@ -15,10 +15,6 @@ 1.4 SPLIT="lzma lzlib lzlib-dev" 1.5 1.6 compile_rules() { 1.7 - if [ ! -f done.lzlib.u ]; then 1.8 - patch -p0 < $stuff/lzlib.u || return 1 1.9 - touch done.lzlib.u 1.10 - fi 1.11 cd CPP/7zip/Compress/LZMA_Alone 1.12 1.13 # Handle cross compilation 1.14 @@ -31,35 +27,45 @@ 1.15 # Remove copyright message. 1.16 sed '/MY_VERSION_COPYRIGHT_DATE/d' -i LzmaAlone.cpp 1.17 1.18 + dos2unix makefile.gcc 1.19 + sed -i 's|^CFLAGS =.*|& -fPIC|' makefile.gcc 1.20 + 1.21 + title 'Making lzma' 1.22 make -f makefile.gcc lzma 2>/dev/null 1.23 + title 'Making liblz.so' 1.24 make -f makefile.gcc liblz.so.1.0.0 && 1.25 - make -f makefile.gcc lzma && 1.26 - ln -s $src $install 1.27 + title 'Making lzma (again)' && 1.28 + make -f makefile.gcc lzma || return 1 1.29 + 1.30 + # install libs 1.31 + install -Dm755 liblz.so.1.0.0 $install/lib/liblz.so.1.0.0 1.32 + ln -s liblz.so.1.0.0 $install/lib/liblz.so 1.33 + ln -s liblz.so.1.0.0 $install/lib/liblz.so.1 1.34 + 1.35 + # install bins 1.36 + install -Dm755 lzma-shared $install/usr/bin/lzma-alone 1.37 + install -Dm755 $stuff/lzma $install/usr/bin/lzma 1.38 + ln -s lzma $install/usr/bin/unlzma 1.39 + ln -s lzma $install/usr/bin/lzcat 1.40 + 1.41 + # install header 1.42 + install -Dm644 lzlib.h $install/usr/include/lzlib.h 1.43 } 1.44 1.45 genpkg_rules() { 1.46 case $PACKAGE in 1.47 lzma) 1.48 - mkdir -p $fs/usr/bin 1.49 - cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzma-shared $fs/usr/bin/lzma-alone 1.50 - cp $stuff/lzma $fs/usr/bin 1.51 - chmod 755 $fs/usr/bin/lzma 1.52 - ln -s lzma $fs/usr/bin/unlzma 1.53 - ln -s lzma $fs/usr/bin/lzcat 1.54 - DEPENDS="lzlib zlib gcc-lib-base" 1.55 + copy bin/ 1.56 + DEPENDS="lzlib" 1.57 TAGS="compression archive" 1.58 ;; 1.59 lzlib) 1.60 - mkdir -p $fs/lib 1.61 - cp -a $src/CPP/7zip/Compress/LZMA_Alone/liblz.so.1.0.0 $fs/lib 1.62 - ln -s liblz.so.1.0.0 $fs/lib/liblz.so 1.63 - ln -s liblz.so.1.0.0 $fs/lib/liblz.so.1 1.64 + copy lib/ 1.65 CAT="base-system|library" 1.66 - DEPENDS="zlib gcc-lib-base" 1.67 + DEPENDS="zlib" 1.68 ;; 1.69 - lzlib-dev) 1.70 - mkdir -p $fs/usr/include 1.71 - cp -a $src/CPP/7zip/Compress/LZMA_Alone/lzlib.h $fs/usr/include 1.72 + *-dev) 1.73 + copy @dev 1.74 ;; 1.75 esac 1.76 }