SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "tree"

# SliTaz package receipt.

PACKAGE="tree"
VERSION="2.0.2"
CATEGORY="utilities"
SHORT_DESC="Recursive directory listing program."
MAINTAINER="MikeDSmith25@gmail.com"
LICENSE="GPL2"
WEB_SITE="https://github.com/pyr/tree"
REPOLOGY="tree-steve-baker"

TARBALL="$PACKAGE-$VERSION.tgz"
WGET_URL="https://gitlab.com/OldManProgrammer/unix-tree/-/archive/$VERSION/unix-tree-$VERSION.tar.gz"

DEPENDS="gcc83-lib-base"
BUILD_DEPENDS="gcc83"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    sed '/tree-/!d;/tgz/!d;s|.*tree-||;s|.tgz.*||' | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    make    CC=gcc-83 CXX=g++-83 &&
    make    install            \
        BINDIR=$DESTDIR/usr/bin    \
        MANDIR=$DESTDIR/usr/share/man
}

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