wok-6.x view tazbug/receipt @ rev 24415

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 10 18:04:02 2022 +0000 (2022-02-10)
parents ab43b9f8e081
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tazbug"
4 VERSION="152"
5 CATEGORY="network"
6 SHORT_DESC="SliTaz Bug Tracker - Client side tools"
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 LICENSE="BSD"
10 WEB_SITE="http://bugs.slitaz.org/"
11 WGET_URL="http://hg.slitaz.org/tazbug/archive/$VERSION.tar.gz"
12 TAGS="slitaz"
14 DEPENDS="busybox gettext-base slitaz-base-files"
15 BUILD_DEPENDS="gettext"
16 SIBLINGS="tazbug-website"
18 current_version()
19 {
20 wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \
21 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \
22 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 make && make install
29 }
31 genpkg_rules()
32 {
33 cp -a $install/* $fs
34 chown -R root.root $fs
35 }