wok-6.x view glances/receipt @ rev 24415
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 10 18:04:02 2022 +0000 (2022-02-10) |
parents | 193a38dd2e06 |
children | 870e1ce31226 |
line source
1 # SliTaz package receipt.
3 PACKAGE="glances"
4 VERSION="3.1.3"
5 CATEGORY="utilities"
6 SHORT_DESC="A CLI curses based monitoring tool for GNU/Linux and BSD OS."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="LGPL3"
9 WEB_SITE="https://nicolargo.github.com/glances/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/nicolargo/$PACKAGE/archive/v$VERSION.tar.gz"
14 SUGGESTED="python-jinja2"
15 DEPENDS="python python-psutil"
16 BUILD_DEPENDS="python-dev python-psutil python-setuptools"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 python setup.py install --root=$DESTDIR
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 cp -a $install/usr $fs
35 # remove stuff
36 rm -rf $fs/usr/share/man
37 }