wok-6.x view yaff/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 1dce8e8602f2
children
line source
1 # SliTaz package receipt
3 PACKAGE="yaff"
4 VERSION="258"
5 CATEGORY="utilities"
6 SHORT_DESC="Mozilla Firefox multi-launcher"
7 MAINTAINER="postmaster@baba0rum.com"
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/"
14 DEPENDS="gtkdialog"
16 current_version()
17 {
18 wget -O - http://hg.slitaz.org/slitaz-dev-tools/ 2>/dev/null | \
19 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/slitaz-dev-tools/rev/|;s|<.*||' | \
20 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/share/pixmaps $fs/usr/bin
27 cp -a $src/baba-scripts/yaff $fs/usr/bin
28 cp -a $src/baba-scripts/mozicon24.png $src/baba-scripts/yaff.png \
29 $fs/usr/share/pixmaps
30 chown -R root.root $fs
31 }