wok view nmon/receipt @ rev 25696

created recipe for dool
author Hans-G?nter Theisgen
date Sat May 11 17:17:55 2024 +0100 (6 months ago)
parents afae00265386
children
line source
1 # SliTaz package receipt
3 PACKAGE="nmon"
4 VERSION="16m"
5 CATEGORY="system-tools"
6 SHORT_DESC="Nigel's performance Monitor."
7 MAINTAINER="meshca@clarkson.edu"
8 LICENSE="GPL3"
9 WEB_SITE="https://nmon.sourceforge.net/"
11 TARBALL="lmon$VERSION.c"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="ncursesw"
15 BUILD_DEPENDS="glibc-base linux-api-headers ncursesw-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/nmon/files/ 2>/dev/null | \
21 sed '/scope="row/!d;/lmon/!d;/c.down/!d;s|.*files/lmon||;s|.c/down.*||' | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cc -o nmon lmon$VERSION.c \
28 -g -O2 \
29 -D JFS -D GETUSER -D LARGEMEM -D POWER \
30 -Wall \
31 -lm -lncursesw -ltinfo -g
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/bin/
38 cp -a $src/nmon $fs/usr/bin/nmon
39 }