wok annotate slitaz-doc/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 | c3aef97a3cef |
children |
rev | line source |
---|---|
pankso@421 | 1 # SliTaz package receipt. |
pankso@421 | 2 |
pankso@421 | 3 PACKAGE="slitaz-doc" |
pascal@23926 | 4 VERSION="160" |
pankso@421 | 5 CATEGORY="base-system" |
pankso@421 | 6 SHORT_DESC="SliTaz system documentation." |
pankso@421 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15579 | 8 LICENSE="GPL3" |
pankso@421 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@421 | 10 WEB_SITE="http://www.slitaz.org/" |
pascal@14805 | 11 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz" |
pankso@421 | 12 |
pascal@24069 | 13 current_version() |
pascal@24069 | 14 { |
pascal@24069 | 15 wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \ |
pascal@24069 | 16 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \ |
pascal@24069 | 17 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||' |
pascal@24069 | 18 } |
pascal@24069 | 19 |
pankso@421 | 20 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@421 | 21 genpkg_rules() |
pankso@421 | 22 { |
pankso@10742 | 23 mkdir -p \ |
pankso@10742 | 24 $fs/usr/share/doc \ |
pankso@10690 | 25 $fs/usr/share/applications \ |
pankso@10743 | 26 $fs/etc/skel/Desktop |
pankso@10742 | 27 cp -a $src/slitaz $fs/usr/share/doc |
pankso@10742 | 28 # Desktop file and pixmaps. |
pankso@10863 | 29 cp $src/applications/slitaz-doc.desktop \ |
pankso@10863 | 30 $fs/etc/skel/Desktop |
pankso@10863 | 31 cp $src/applications/system-doc.desktop \ |
pankso@10863 | 32 $fs/usr/share/applications |
pankso@2636 | 33 cp -a $src/pixmaps $fs/usr/share |
pankso@421 | 34 chown -R root.root $fs/* |
pankso@421 | 35 } |