# Contributor: sewn <sewn@disroot.org>
# Maintainer: sewn <sewn@disroot.org>
pkgname=fnf
pkgver=0.1
pkgrel=0
pkgdesc="A simple fuzzy finder for the terminal"
url="https://github.com/leo-arch/fnf"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/leo-arch/fnf/archive/refs/tags/v$pkgver.tar.gz"

build() {
	make
}

check() {
	make test
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
	install -Dm644 "$builddir"/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

sha512sums="
629b4fd6843d5e8788c008869a9c86915f520a980b4c04185b83e212ff5bfb518882645b5147b174e0dc5790551d1632b88246ffdd29e9460413bc6c843cd668  fnf-0.1.tar.gz
"
