wok annotate ecm/receipt @ rev 25599
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 16 13:38:12 2023 +0000 (16 months ago) |
parents | f08fe4855be4 |
children |
rev | line source |
---|---|
slaxemulator@7521 | 1 # SliTaz package receipt. |
slaxemulator@7521 | 2 |
slaxemulator@7521 | 3 PACKAGE="ecm" |
Hans-G?nter@22670 | 4 VERSION="1.06" |
slaxemulator@7521 | 5 CATEGORY="misc" |
Hans-G?nter@22670 | 6 SHORT_DESC="Converts CD image files into a lossless format optimized for compression tools." |
slaxemulator@7521 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15202 | 8 LICENSE="GPL3" |
Hans-G?nter@22670 | 9 WEB_SITE="https://github.com/chungy/cmdpack" |
Hans-G?nter@22670 | 10 |
slaxemulator@12766 | 11 SOURCE="cmdpack" |
Hans-G?nter@22670 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@22670 | 13 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" |
Hans-G?nter@22670 | 14 |
pascal@24060 | 15 BUILD_DEPENDS="asciidoc docbook-xsl libxml2-tools libxslt" |
slaxemulator@7521 | 16 |
pascal@25599 | 17 # What is the latest version available today? |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25599 | 21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
slaxemulator@7521 | 24 # Rules to configure and make the package. |
slaxemulator@7521 | 25 compile_rules() |
slaxemulator@7521 | 26 { |
Hans-G?nter@22670 | 27 make && |
Hans-G?nter@22670 | 28 make install prefix=/usr |
slaxemulator@7521 | 29 } |
slaxemulator@7521 | 30 |
slaxemulator@7521 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7521 | 32 genpkg_rules() |
slaxemulator@7521 | 33 { |
slaxemulator@7521 | 34 mkdir -p $fs/usr/bin |
Hans-G?nter@22670 | 35 |
Hans-G?nter@22670 | 36 cp -a $install/usr/bin/bin2ecm $fs/usr/bin |
Hans-G?nter@22670 | 37 cp -a $install/usr/bin/ecm2bin $fs/usr/bin |
slaxemulator@7521 | 38 } |