SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "nmon"

# SliTaz package receipt

PACKAGE="nmon"
VERSION="16m"
CATEGORY="system-tools"
SHORT_DESC="Nigel's performance Monitor."
MAINTAINER="meshca@clarkson.edu"
LICENSE="GPL3"
WEB_SITE="https://nmon.sourceforge.net/"

TARBALL="lmon$VERSION.c"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="ncursesw"
BUILD_DEPENDS="glibc-base linux-api-headers ncursesw-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/nmon/files/ 2>/dev/null | \
    sed '/scope="row/!d;/lmon/!d;/c.down/!d;s|.*files/lmon||;s|.c/down.*||' | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    cc    -o nmon lmon$VERSION.c            \
        -g -O2                    \
        -D JFS -D GETUSER -D LARGEMEM -D POWER    \
        -Wall                    \
        -lm -lncursesw -ltinfo -g
}
                    
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin/
    cp -a $src/nmon    $fs/usr/bin/nmon
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)