wok-6.x view slitaz-mercurial-style/receipt @ rev 24777

jack1: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 19 16:54:56 2022 +0000 (2022-03-19)
parents 1dce8e8602f2
children
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-mercurial-style"
4 VERSION="258"
5 CATEGORY="misc"
6 SHORT_DESC="SliTaz CSS style and images for Mercurial Web repos."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
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="mercurial"
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 PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
27 mkdir -p $fs/usr/lib/$PYTHON_LIB/site-packages/mercurial
28 cp -a $src/$PACKAGE/templates $fs/usr/lib/$PYTHON_LIB/site-packages/mercurial
29 chown -R root.root $fs
30 }