SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "which"

# SliTaz package receipt.

PACKAGE="which"
VERSION="2.21"
CATEGORY="base-system"
SHORT_DESC="A utility to show the full path of commands."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="GPL3"
WEB_SITE="https://savannah.gnu.org/projects/which/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="glibc-base"

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

# Rules to configure and make the package.
compile_rules()
{
    ./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
}

post_remove()
{
    ln -s /bin/busybox /usr/bin/which
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)