wok view discount/receipt @ rev 24434

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 12 19:02:42 2022 +0000 (2022-02-12)
parents 5ea0ce1cecc0
children 8cd7415960ec
line source
1 # SliTaz package receipt.
3 PACKAGE="discount"
4 VERSION="2.2.6"
5 CATEGORY="utilities"
6 SHORT_DESC="A C implementation of the markdown language."
7 MAINTAINER="necrophcodr@necrophcodr.me"
8 LICENSE="BSD3"
9 WEB_SITE="http://www.pell.portland.or.us/~orc/Code/markdown/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/Orc/$PACKAGE/archive/v$VERSION/$TARBALL"
14 DEPENDS=""
15 BUILD_DEPENDS=""
17 HOST_ARCH="i486 arm"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure.sh --prefix=/usr &&
29 make -j 1 &&
30 make DESTDIR=$DESTDIR install
31 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 cp -a $install/usr/bin $fs/usr/
39 }