SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "cdf"

# SliTaz package receipt.

PACKAGE="cdf"
VERSION="0.2"
CATEGORY="system-tools"
SHORT_DESC="Colorized df (color schemes)."
MAINTAINER="paul@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://github.com/novel/cdf"
WGET_URL="https://src.fedoraproject.org/repo/pkgs/$PACKAGE/$TARBALL/1afd130f6c562700e8ad05724c6e1a9d/$TARBALL"
TAGS="color schemes"

DEPENDS=""

# What is the latest version available today?
current_version()
{
    wget -O - https://raw.githubusercontent.com/novel/cdf/master/ChangeLog 2>/dev/null | \
    sed '/^Version /!d;s|.*ersion ||' | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src

    # Fix typos
    sed -i 's/filesyitems/filesystems/' src/main.c

    ./configure \
        --prefix=/usr \
        --infodir=/usr/share/info \
        --mandir=/usr/share/man \
        $CONFIGURE_ARGS &&
    make && make DESTDIR=$DESTDIR install
}

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