wok-next diff 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 |
line diff
1.1 --- a/advancecomp/receipt Mon Jun 19 17:21:41 2017 +0300 1.2 +++ b/advancecomp/receipt Wed Jun 06 04:36:32 2018 +0300 1.3 @@ -1,51 +1,48 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 PACKAGE="advancecomp" 1.7 -VERSION="2.0" 1.8 -COMMIT="4e04906" 1.9 +VERSION="2.1" 1.10 +COMMIT="ea4f30c" 1.11 CATEGORY="system-tools" 1.12 SHORT_DESC="Recompression utilities for .ZIP, .PNG, .MNG and .GZ" 1.13 MAINTAINER="pascal.bellard@slitaz.org" 1.14 LICENSE="GPL2" 1.15 WEB_SITE="http://www.advancemame.it/comp-readme" 1.16 -TAGS="compression archive" 1.17 +HOST_ARCH="i486 x86_64" 1.18 1.19 TARBALL="$PACKAGE-${COMMIT:-$VERSION}.tar.gz" 1.20 WGET_URL="$GITHUB/amadvance/advancecomp/tarball/${COMMIT:-v$VERSION}" 1.21 1.22 BUILD_DEPENDS="automake zlib-dev" 1.23 -SPLIT="advancecomp-static" 1.24 +SPLIT="advancecomp advancecomp-static:static" 1.25 1.26 -# Rules to configure and make the package. 1.27 -compile_rules() 1.28 -{ 1.29 +compile_rules() { 1.30 ./autogen.sh && 1.31 1.32 - # make statically linked tools 1.33 - ./configure \ 1.34 - LDFLAGS='-static' \ 1.35 - --bindir=/usr/sbin \ 1.36 - $CONFIGURE_ARGS && 1.37 - make && make install && 1.38 + case "$SET" in 1.39 + static) 1.40 + ./configure \ 1.41 + LDFLAGS='-static' \ 1.42 + $CONFIGURE_ARGS;; 1.43 + *) 1.44 + ./configure $CONFIGURE_ARGS;; 1.45 + esac && 1.46 1.47 - # make dynamically linked tools 1.48 - make clean && 1.49 - ./configure $CONFIGURE_ARGS && make && make install 1.50 + make && make install 1.51 } 1.52 1.53 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.54 -genpkg_rules() 1.55 -{ 1.56 +genpkg_rules() { 1.57 case $PACKAGE in 1.58 advancecomp) 1.59 - copy bin/ 1.60 + copy @std 1.61 DEPENDS="zlib" 1.62 ;; 1.63 *-static) 1.64 - copy sbin/ 1.65 + copy @std 1.66 CAT="system-tools|static binary" 1.67 DEPENDS=" " 1.68 PROVIDE="advancecomp" 1.69 ;; 1.70 esac 1.71 + TAGS="compression archive" 1.72 }