# Contributor: dai9ah <dai9ah@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=bfs
pkgver=4.0.6
pkgrel=0
pkgdesc="Breadth-first variant of the UNIX find command"
url="https://github.com/tavianator/bfs"
arch="all"
license="0BSD"
makedepends="
	acl-dev
	attr-dev
	libcap-dev
	liburing-dev
	linux-headers
	oniguruma-dev
	"
checkdepends="bash acl coreutils"
subpackages="
	$pkgname-doc
	$pkgname-bash-completion
	$pkgname-zsh-completion
	$pkgname-fish-completion
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/tavianator/bfs/archive/$pkgver.tar.gz"

build() {
	./configure \
		--enable-release \
		--with-libacl \
		--with-libcap \
		--with-liburing \
		--with-oniguruma
	make
}

check() {
	TEST_FLAGS="--verbose" make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
60552e6890d178e7627bfb63b3c17d0b109bba742a10463a06bc603e0fa6069abad573c7fc1b8485539f0c13566e677fa888906dc6f0d42cf7a04252f6e01d0e  bfs-4.0.6.tar.gz
"
