wok annotate tazpanel-extra/receipt @ rev 24304
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 17 11:01:52 2022 +0000 (2022-01-17) |
parents | 7e911016a644 |
children |
rev | line source |
---|---|
pascal@18245 | 1 # SliTaz package receipt. |
pascal@18245 | 2 |
pascal@18245 | 3 PACKAGE="tazpanel-extra" |
pascal@24278 | 4 VERSION="638" |
pascal@18245 | 5 CATEGORY="system-tools" |
pascal@18245 | 6 SHORT_DESC="SliTaz administration and configuration panel extra modules." |
pascal@18245 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18245 | 8 LICENSE="BSD" |
pascal@18251 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@18245 | 10 WEB_SITE="http://www.slitaz.org/" |
pascal@18251 | 11 WGET_URL="http://hg.slitaz.org/tazpanel/archive/$VERSION.tar.gz" |
pascal@18245 | 12 HOST_ARCH="i486" |
pascal@18245 | 13 |
pascal@18245 | 14 DEPENDS="tazpanel" |
al@19617 | 15 SIBLINGS="tazpanel" |
pascal@18245 | 16 |
pascal@24069 | 17 current_version() |
pascal@24069 | 18 { |
pascal@24069 | 19 wget -O - http://hg.slitaz.org/tazpanel/ 2>/dev/null | \ |
pascal@24069 | 20 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/tazpanel/rev/|;s|<.*||' | \ |
pascal@24069 | 21 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||' |
pascal@24069 | 22 } |
pascal@24069 | 23 |
pascal@18250 | 24 # Rules to configure and make the package. |
pascal@18250 | 25 compile_rules() |
pascal@18250 | 26 { |
pascal@18568 | 27 make && make DESTDIR=$DESTDIR VERSION=$VERSION install_extra |
pascal@18250 | 28 } |
pascal@18250 | 29 |
pascal@18245 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18245 | 31 genpkg_rules() |
pascal@18245 | 32 { |
pascal@18250 | 33 cp -a $install/* $fs |
pascal@18245 | 34 } |
pascal@18569 | 35 |
pascal@18569 | 36 post_install() |
pascal@18569 | 37 { |
pascal@18730 | 38 rm -f "$1"/var/cache/tazpanel/* 2> /dev/null || true |
pascal@18569 | 39 } |