Name findutils
Description GNU utilities to locate files
Version 4.10.0-3
Package Base findutils
Homepage https://www.gnu.org/software/findutils/
Maintainers ['Tobias Powalowski <tpowa@archlinux.org>']
Contributors []
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/findutils
Sources ['git+https://git.savannah.gnu.org/git/findutils.git?signed#tag=v4.10.0', 'git+https://git.savannah.gnu.org/git/gnulib.git']
Dependencies ['glibc']
Optional-Dependencies []
Build-Dependencies ['git', 'wget', 'python']
Provides []
Builddate 02-07-2025 18:26:17
Architecture x86_64
Distro-Version
Licenses ['GPL-3.0-or-later']
Hash 689e1be701e9b20a650f012793e8a79ee62d8a61ddce84c79e940068f9b713c9
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=findutils
pkgver=4.10.0
pkgrel=3
pkgdesc="GNU utilities to locate files"
arch=('x86_64')
license=('GPL-3.0-or-later')
depends=('glibc')
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}"
        "git+https://git.savannah.gnu.org/git/gnulib.git")
validpgpkeys=('A5189DB69C1164D33002936646502EF796917195') # Bernhard Voelker <mail@bernhard-voelker.de>
b2sums=('a6d99d922df4c6895d9956a6902518c5f911e6ad1fdcbfc99bb083ce0a725fa4e87bb83a1a2d16e6d900755da9e9094b20f56f971c8e6a6008572cd417fe3e95'
        'SKIP')

prepare() {
  cd "${pkgname}"

  git submodule init
  git config submodule.gnulib.url "${srcdir}/gnulib"
  git -c protocol.file.allow=always submodule update

  ./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
}