wok-6.x view tazdev/receipt @ rev 24069

Add some current_version()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 06 11:01:20 2021 +0000 (2021-07-06)
parents 1dce8e8602f2
children
line source
1 # SliTaz package receipt
3 PACKAGE="tazdev"
4 VERSION="258"
5 CATEGORY="development"
6 SHORT_DESC="SliTaz developers tools."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 SOURCE="slitaz-dev-tools"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WGET_URL="http://hg.slitaz.org/slitaz-dev-tools/archive/$VERSION.tar.bz2"
12 WEB_SITE="http://www.slitaz.org/"
13 HOST_ARCH="i486 arm"
15 DEPENDS="rsync"
17 current_version()
18 {
19 wget -O - http://hg.slitaz.org/slitaz-dev-tools/ 2>/dev/null | \
20 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/slitaz-dev-tools/rev/|;s|<.*||' | \
21 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/etc/slitaz $fs/usr/bin
28 cp -a $src/$PACKAGE/tazdev $fs/usr/bin
29 cp -a $src/$PACKAGE/tazdev.conf $fs/etc/slitaz
30 chown -R root.root $fs
31 }