# Contributor: dai9ah <dai9ah@protonmail.com>
# Maintainer: dai9ah <dai9ah@protonmail.com>
pkgname=bfs
pkgver=1.2.1
pkgrel=0
pkgdesc="Breadth-first variant of the UNIX find command"
url="https://github.com/tavianator/bfs"
arch="all"
license="0BSD"
makedepends="linux-headers"
checkdepends="bash coreutils diffutils"
subpackages="$pkgname-doc"
options="!checkroot"
source="$pkgname-$pkgver.tar.gz::https://github.com/tavianator/$pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	make -C "$builddir"
}

check() {
	make -C "$builddir" check
}

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

sha512sums="4c976af1f01a52537fb9b5f0df4eec119382c384a342062e7c2cc8d9b6298d7c74bd60545fad2099fe32211dd856790b3bd149843cab7cd59e3f2a0fb8cfac3e  bfs-1.2.1.tar.gz"
