wok annotate ecm/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 6111525aeaef |
children | f08fe4855be4 |
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 |
Hans-G?nter@22672 | 15 BUILD_DEPENDS="asciidoc docbook-xml libxml2-tools libxslt" |
slaxemulator@7521 | 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|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
slaxemulator@7521 | 23 # Rules to configure and make the package. |
slaxemulator@7521 | 24 compile_rules() |
slaxemulator@7521 | 25 { |
Hans-G?nter@22670 | 26 make && |
Hans-G?nter@22670 | 27 make install prefix=/usr |
slaxemulator@7521 | 28 } |
slaxemulator@7521 | 29 |
slaxemulator@7521 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7521 | 31 genpkg_rules() |
slaxemulator@7521 | 32 { |
slaxemulator@7521 | 33 mkdir -p $fs/usr/bin |
Hans-G?nter@22670 | 34 |
Hans-G?nter@22670 | 35 cp -a $install/usr/bin/bin2ecm $fs/usr/bin |
Hans-G?nter@22670 | 36 cp -a $install/usr/bin/ecm2bin $fs/usr/bin |
slaxemulator@7521 | 37 } |