wok-6.x view slitaz-tools/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 | 8f9abd79c4da |
children | db9d9cb3c164 |
line source
1 # SliTaz package receipt.
3 PACKAGE="slitaz-tools"
4 VERSION="1036"
5 CATEGORY="system-tools"
6 SHORT_DESC="SliTaz tools provide installer and utils usable on terminal."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.slitaz.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="http://hg.slitaz.org/slitaz-tools/archive/$VERSION.tar.bz2"
12 HOST_ARCH="i486 arm"
14 SUGGESTED="slitaz-tools-boxes"
15 DEPENDS="slitaz-boot-scripts dialog gettext-base slitaz-configs-base"
16 BUILD_DEPENDS="gettext"
17 SIBLINGS="slitaz-tools-boxes tazdrop"
19 # Saved config file by package manager
20 CONFIG_FILES="
21 /etc/TZ
22 /etc/keymap.conf
23 /etc/locale.conf
24 /etc/slitaz/firewall.conf"
26 current_version()
27 {
28 wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \
29 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \
30 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 mkdir -p $DESTDIR/usr/share
37 make && make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs
44 cp -a $install/* $fs
45 chmod 0644 $fs/usr/share/locale/*/*/*.mo
46 chown -R root.root $fs
47 }