jobcore/findutils/PKGBUILD-arch
2024-08-28 14:10:31 +03:00

42 lines
1.1 KiB
Text

# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=findutils
pkgver=4.10.0
pkgrel=2
pkgdesc="GNU utilities to locate files"
arch=('x86_64')
license=('GPL-3.0-or-later')
depends=('glibc' 'sh')
makedepends=('git' 'wget' 'python')
url='https://www.gnu.org/software/findutils/'
source=("git+https://git.savannah.gnu.org/git/findutils.git?signed#tag=v${pkgver}")
b2sums=('a6d99d922df4c6895d9956a6902518c5f911e6ad1fdcbfc99bb083ce0a725fa4e87bb83a1a2d16e6d900755da9e9094b20f56f971c8e6a6008572cd417fe3e95')
validpgpkeys=('A5189DB69C1164D33002936646502EF796917195') # Bernhard Voelker <mail@bernhard-voelker.de>
prepare() {
cd "${pkgname}"
./bootstrap
}
build() {
cd "${pkgname}"
# Don't build or install locate because we use mlocate,
# which is a secure version of locate.
sed -e '/^SUBDIRS/s/locate//' -e 's/frcode locate updatedb//' -i Makefile.in
./configure --prefix=/usr
# don't build locate, but the docs want a file in there.
make -C locate dblocation.texi
make
}
check() {
cd "${pkgname}"
make check
}
package() {
cd "${pkgname}"
make DESTDIR="${pkgdir}" install
}