wok annotate nmon/receipt @ rev 24402
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 08 16:59:06 2022 +0000 (2022-02-08) |
parents | b15cc3561ef8 |
children | 7dd01dedad38 |
rev | line source |
---|---|
gokhlayeh@11970 | 1 # SliTaz package receipt |
Hans-G?nter@23247 | 2 |
gokhlayeh@11970 | 3 PACKAGE="nmon" |
Hans-G?nter@23247 | 4 VERSION="16m" |
gokhlayeh@11970 | 5 CATEGORY="system-tools" |
gokhlayeh@11970 | 6 SHORT_DESC="Nigel's performance Monitor." |
gokhlayeh@11970 | 7 MAINTAINER="meshca@clarkson.edu" |
pascal@15601 | 8 LICENSE="GPL3" |
pascal@15601 | 9 WEB_SITE="http://nmon.sourceforge.net/" |
Hans-G?nter@23247 | 10 |
Hans-G?nter@23247 | 11 TARBALL="lmon$VERSION.c" |
pascal@17675 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@15601 | 13 |
Hans-G?nter@23247 | 14 DEPENDS="ncursesw" |
Hans-G?nter@23249 | 15 BUILD_DEPENDS="glibc-base linux-api-headers ncursesw-dev" |
gokhlayeh@11970 | 16 |
pascal@24402 | 17 # What is the latest version available today? |
pascal@24402 | 18 current_version() |
pascal@24402 | 19 { |
pascal@24402 | 20 wget -O - https://sourceforge.net/projects/nmon/files/ 2>/dev/null | \ |
pascal@24402 | 21 sed '/scope="row/!d;/lmon/!d;/c.down/!d;s|.*files/lmon||;s|.c/down.*||' | sort -Vr | sed q |
pascal@24402 | 22 } |
pascal@24402 | 23 |
gokhlayeh@11970 | 24 # Rules to configure and make the package. |
gokhlayeh@11970 | 25 compile_rules() |
gokhlayeh@11970 | 26 { |
Hans-G?nter@23247 | 27 cc -o nmon lmon$VERSION.c \ |
Hans-G?nter@23247 | 28 -g -O2 \ |
Hans-G?nter@23247 | 29 -D JFS -D GETUSER -D LARGEMEM -D POWER \ |
pascal@23256 | 30 -Wall \ |
Hans-G?nter@23247 | 31 -lm -lncursesw -ltinfo -g |
gokhlayeh@11970 | 32 } |
gokhlayeh@11970 | 33 |
gokhlayeh@11970 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@11970 | 35 genpkg_rules() |
gokhlayeh@11970 | 36 { |
gokhlayeh@11970 | 37 mkdir -p $fs/usr/bin/ |
Hans-G?nter@23247 | 38 cp -a $src/nmon $fs/usr/bin/nmon |
gokhlayeh@11970 | 39 } |