wok-next annotate p7zip/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 | f48456621a9d |
children |
rev | line source |
---|---|
al@20443 | 1 # SliTaz package receipt v2. |
milka@1164 | 2 |
milka@1164 | 3 PACKAGE="p7zip" |
pascal@19357 | 4 VERSION="16.02" |
milka@1164 | 5 CATEGORY="utilities" |
al@20443 | 6 SHORT_DESC="File archiver with high compression ratio" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@19357 | 8 LICENSE="LGPL2.1" |
al@20443 | 9 #WEB_SITE="http://p7zip.sourceforge.net/" |
al@20443 | 10 WEB_SITE="https://sourceforge.net/projects/sevenzip/" |
al@21017 | 11 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/p7zip.html" |
al@20443 | 12 |
milka@1168 | 13 TARBALL="${PACKAGE}_${VERSION}_src_all.tar.bz2" |
milka@1164 | 14 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
milka@1164 | 15 |
al@20481 | 16 BUILD_DEPENDS="nasm yasm" |
al@21017 | 17 SPLIT="$PACKAGE-full" |
al@20443 | 18 |
al@20443 | 19 compile_rules() { |
al@20443 | 20 case $ARCH in |
al@20443 | 21 i?86) cp makefile.linux_x86_asm_gcc_4.X makefile.machine;; |
al@20443 | 22 x86_64) cp makefile.linux_amd64_asm makefile.machine;; |
al@20443 | 23 esac |
al@20443 | 24 sed -i 's|HOME)/man|HOME)/share/man|' makefile.common |
al@20443 | 25 |
al@20443 | 26 make all3 OPTFLAGS="$CFLAGS" && |
al@20443 | 27 make install \ |
al@20443 | 28 DEST_DIR="$install" \ |
al@20443 | 29 DEST_HOME=/usr \ |
al@20443 | 30 DEST_SHARE_DOC=/usr/share/doc/p7zip-$VERSION \ |
al@20657 | 31 DEST_MAN=/usr/share/man |
milka@1164 | 32 } |
milka@1164 | 33 |
al@20443 | 34 genpkg_rules() { |
al@20443 | 35 case $PACKAGE in |
al@20443 | 36 p7zip) |
al@20443 | 37 copy 7zr |
al@20443 | 38 CAT="utilities|supports only 7z archives" |
al@20443 | 39 ;; |
al@21017 | 40 *-full) |
al@20443 | 41 copy @std @rm |
al@20443 | 42 CAT="utilities|full version with restricted codecs" |
al@20443 | 43 DEPENDS="p7zip" |
al@20443 | 44 ;; |
al@20443 | 45 esac |
milka@1164 | 46 } |