wok-6.x annotate slitaz-mercurial-style/receipt @ rev 24565

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 25 22:15:31 2022 +0000 (2022-02-25)
parents 1dce8e8602f2
children
rev   line source
pankso@17 1 # SliTaz package receipt.
pankso@17 2
pankso@17 3 PACKAGE="slitaz-mercurial-style"
pascal@19414 4 VERSION="258"
pankso@211 5 CATEGORY="misc"
pankso@17 6 SHORT_DESC="SliTaz CSS style and images for Mercurial Web repos."
slaxemulator@9242 7 MAINTAINER="pankso@slitaz.org"
pascal@15579 8 LICENSE="GPL3"
slaxemulator@10728 9 SOURCE="slitaz-dev-tools"
slaxemulator@10732 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
slaxemulator@10728 11 WGET_URL="http://hg.slitaz.org/slitaz-dev-tools/archive/$VERSION.tar.bz2"
slaxemulator@10728 12 WEB_SITE="http://www.slitaz.org/"
slaxemulator@10728 13
pankso@17 14 DEPENDS="mercurial"
pankso@17 15
pascal@24069 16 current_version()
pascal@24069 17 {
pascal@24069 18 wget -O - http://hg.slitaz.org/slitaz-dev-tools/ 2>/dev/null | \
pascal@24069 19 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/slitaz-dev-tools/rev/|;s|<.*||' | \
pascal@24069 20 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
pascal@24069 21 }
pascal@24069 22
pankso@17 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@17 24 genpkg_rules()
pankso@17 25 {
pascal@6594 26 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
pankso@4465 27 mkdir -p $fs/usr/lib/$PYTHON_LIB/site-packages/mercurial
slaxemulator@9242 28 cp -a $src/$PACKAGE/templates $fs/usr/lib/$PYTHON_LIB/site-packages/mercurial
pankso@17 29 chown -R root.root $fs
pankso@17 30 }