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