Files
haikuports/sys-apps/findutils/findutils-4.9.0.recipe
2023-04-24 08:01:04 +02:00

89 lines
2.2 KiB
Bash

SUMMARY="Basic directory searching utilities"
DESCRIPTION="GNU Findutils are typically used in conjunction with other programs to \
provide modular and powerful directory search and file locating \
capabilities to other commands.
The tools supplied with this package are:
- find - search for files in a directory hierarchy
- locate - list files in databases that match a pattern
- updatedb - update a file name database
- xargs - build and execute command lines from a standard input."
HOMEPAGE="http://www.gnu.org/software/findutils"
COPYRIGHT="1994-2015 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="2"
SOURCE_URI="https://ftp.gnu.org/gnu/findutils/findutils-$portVersion.tar.xz"
CHECKSUM_SHA256="a2bfb8c09d436770edc59f50fa483e785b161a3b7b9d547573cb08065fd462fe"
PATCHES="findutils-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
commandBinDir=$binDir
commandSuffix=$secondaryArchSuffix
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
findutils$secondaryArchSuffix = $portVersion compat >= 4
cmd:find$commandSuffix = $portVersion compat >= 4
cmd:locate$commandSuffix = $portVersion compat >= 4
cmd:oldfind$commandSuffix = $portVersion compat >= 4
cmd:updatedb$commandSuffix = $portVersion compat >= 4
cmd:xargs$commandSuffix = $portVersion compat >= 4
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
"
if [ "$targetArchitecture" = x86_gcc2 ]; then
REPLACES="
findutils
"
fi
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:awk
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:ld
cmd:make
cmd:python3
cmd:sed
"
defineDebugInfoPackage findutils$secondaryArchSuffix \
$commandBinDir/find \
$commandBinDir/locate \
$commandBinDir/xargs
BUILD()
{
autoreconf -vfi
MAKEINFO=: runConfigure --omit-dirs binDir ./configure \
--bindir=$commandBinDir \
--libexecdir=$libDir/findutils \
--without-included-regex \
--disable-rpath --with-gnu-ld
make $jobArgs
}
INSTALL()
{
make install
}
TEST()
{
make check
}