pkgname=findutils pkgver=4.9.0 pkgrel=2 pkgdesc="GNU utilities to locate files" url="https://www.gnu.org/software/findutils" arch=('x86_64') license=('GPL3') groups=('base') depends=('glibc' 'sh') source=("https://ftp.gnu.org/pub/gnu/findutils/findutils-${pkgver}.tar.xz") sha1sums=('2a7830f1c25c3c7179150084748099c3c31f819b') build() { cd ${pkgname}-${pkgver} ./configure --prefix=/usr \ --with-packager="KaOS" \ --with-packager-bug-reports="https://github.com/KaOSx/core/issues" \ --libexecdir=/usr/lib make } check() { cd ${pkgname}-${pkgver} make check } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install # files used from mlocate rm ${pkgdir}/usr/bin/locate rm ${pkgdir}/usr/bin/updatedb rm ${pkgdir}/usr/share/man/man1/locate.1 rm ${pkgdir}/usr/share/man/man1/updatedb.1 rm -r ${pkgdir}/usr/share/man/man5 }