SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ttyload"

# SliTaz package receipt.

PACKAGE="ttyload"
VERSION="0.5.3"
CATEGORY="system-tools"
SHORT_DESC="Color-coded graph of load averages over time."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="ISC"
WEB_SITE="https://www.daveltd.com/src/util/ttyload/"

TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="${WEB_SITE}$TARBALL"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/is now/!d;s|.*ttyload-||;s|.tar.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    # 0.5.3
    sed -i '10i#include <time.h>' ttyload.h

    make
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    cp -a $src/ttyload $fs/usr/bin
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)