wok annotate discount/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 6422600fc806
children ac8ca9758df1
rev   line source
tcg@17140 1 # SliTaz package receipt.
tcg@17140 2
tcg@17140 3 PACKAGE="discount"
Hans-G?nter@22734 4 VERSION="2.2.6"
tcg@17140 5 CATEGORY="utilities"
Hans-G?nter@22734 6 SHORT_DESC="A C implementation of the markdown language."
necrophcodr@17745 7 MAINTAINER="necrophcodr@necrophcodr.me"
tcg@17140 8 LICENSE="BSD3"
Hans-G?nter@22734 9 WEB_SITE="http://www.pell.portland.or.us/~orc/Code/markdown/"
Hans-G?nter@20838 10
Hans-G?nter@22734 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@20838 12 WGET_URL="https://github.com/Orc/$PACKAGE/archive/v$VERSION/$TARBALL"
tcg@17140 13
tcg@17140 14 DEPENDS=""
pascal@17152 15 BUILD_DEPENDS=""
Hans-G?nter@22734 16
Hans-G?nter@20838 17 HOST_ARCH="i486 arm"
tcg@17140 18
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 23 }
pascal@24055 24
tcg@17140 25 # Rules to configure and make the package.
tcg@17140 26 compile_rules()
tcg@17140 27 {
tcg@17140 28 ./configure.sh --prefix=/usr &&
Hans-G?nter@22735 29 make -j 1 &&
pascal@17153 30 make DESTDIR=$DESTDIR install
tcg@17140 31 }
tcg@17140 32
tcg@17140 33
tcg@17140 34 # Rules to gen a SliTaz package suitable for Tazpkg.
tcg@17140 35 genpkg_rules()
tcg@17140 36 {
pascal@17152 37 mkdir -p $fs/usr
Hans-G?nter@22734 38 cp -a $install/usr/bin $fs/usr/
tcg@17140 39 }