wok annotate advancecomp/receipt @ rev 24072

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 07 17:56:16 2021 +0000 (2021-07-07)
parents 1cc8dfef2917
children aba2c5ca9a66
rev   line source
pascal@4524 1 # SliTaz package receipt.
pascal@4524 2
pascal@4524 3 PACKAGE="advancecomp"
pascal@20221 4 VERSION="2.1"
pascal@4524 5 CATEGORY="system-tools"
pascal@4524 6 SHORT_DESC="Recompression utilities for .ZIP, .PNG, .MNG and .GZ"
pascal@4524 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15362 8 LICENSE="GPL2"
al@19556 9 WEB_SITE="http://www.advancemame.it/comp-readme"
pascal@4524 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@19556 11 WGET_URL="https://github.com/amadvance/advancecomp/archive/v$VERSION.tar.gz"
pascal@15362 12 TAGS="compression archive"
pascal@15362 13
pascal@4524 14 DEPENDS="gcc-lib-base zlib"
al@19556 15 BUILD_DEPENDS="automake zlib-dev"
pascal@4524 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24055 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@4524 23 # Rules to configure and make the package.
pascal@4524 24 compile_rules()
pascal@4524 25 {
al@19556 26 patch -p1 -i $stuff/advancecomp.patch
al@19556 27
al@19556 28 ./autogen.sh &&
al@19556 29 ./configure $CONFIGURE_ARGS && make && make install
pascal@4524 30 }
pascal@4524 31
pascal@4524 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4524 33 genpkg_rules()
pascal@4524 34 {
al@19556 35 cook_copy_folders bin
pascal@4524 36 }