SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "findutils"

# SliTaz package receipt.

PACKAGE="findutils"
VERSION="4.9.0"
CATEGORY="utilities"
SHORT_DESC="GNU utilities and tools to find and locate."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL3"
WEB_SITE="https://www.gnu.org/software/findutils/"

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

DEPENDS="glibc-base slitaz-base-files"

# 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            \
        --libexecdir=/usr/lib/findutils    \
        --localstatedir=/var        \
        --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()
{
    cook_copy_folders    bin
    cook_copy_folders    lib
}

# Remove Busybox symlink before installing
pre_install()
{
    rm -f "$1/usr/bin/find"
    rm -f "$1/usr/bin/xargs"
}

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