wok view tazpanel-extra/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 | c34ef09acb7c |
children | 1c472d55ff93 |
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpanel-extra"
4 VERSION="633"
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 }