wok-next annotate advancecomp/receipt @ rev 20766
childsplay: up (3.3); tiny edits.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 06 04:36:32 2018 +0300 (2018-06-06) |
parents | b3fdfa3a3bd3 |
children | d5aab818505e |
rev | line source |
---|---|
al@19785 | 1 # SliTaz package receipt v2. |
pascal@4524 | 2 |
pascal@4524 | 3 PACKAGE="advancecomp" |
al@20443 | 4 VERSION="2.1" |
al@20443 | 5 COMMIT="ea4f30c" |
pascal@4524 | 6 CATEGORY="system-tools" |
pascal@4524 | 7 SHORT_DESC="Recompression utilities for .ZIP, .PNG, .MNG and .GZ" |
pascal@4524 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15362 | 9 LICENSE="GPL2" |
al@19556 | 10 WEB_SITE="http://www.advancemame.it/comp-readme" |
al@20443 | 11 HOST_ARCH="i486 x86_64" |
pascal@15362 | 12 |
al@19607 | 13 TARBALL="$PACKAGE-${COMMIT:-$VERSION}.tar.gz" |
al@19607 | 14 WGET_URL="$GITHUB/amadvance/advancecomp/tarball/${COMMIT:-v$VERSION}" |
al@19607 | 15 |
al@19556 | 16 BUILD_DEPENDS="automake zlib-dev" |
al@20443 | 17 SPLIT="advancecomp advancecomp-static:static" |
pascal@4524 | 18 |
al@20443 | 19 compile_rules() { |
al@19556 | 20 ./autogen.sh && |
al@19785 | 21 |
al@20443 | 22 case "$SET" in |
al@20443 | 23 static) |
al@20443 | 24 ./configure \ |
al@20443 | 25 LDFLAGS='-static' \ |
al@20443 | 26 $CONFIGURE_ARGS;; |
al@20443 | 27 *) |
al@20443 | 28 ./configure $CONFIGURE_ARGS;; |
al@20443 | 29 esac && |
al@19785 | 30 |
al@20443 | 31 make && make install |
pascal@4524 | 32 } |
pascal@4524 | 33 |
al@20443 | 34 genpkg_rules() { |
al@19785 | 35 case $PACKAGE in |
al@19785 | 36 advancecomp) |
al@20443 | 37 copy @std |
al@19785 | 38 DEPENDS="zlib" |
al@19785 | 39 ;; |
al@19785 | 40 *-static) |
al@20443 | 41 copy @std |
al@19785 | 42 CAT="system-tools|static binary" |
al@19785 | 43 DEPENDS=" " |
al@19786 | 44 PROVIDE="advancecomp" |
al@19785 | 45 ;; |
al@19785 | 46 esac |
al@20443 | 47 TAGS="compression archive" |
pascal@4524 | 48 } |