# Maintainer (AUR): Stefan Haller <fgrsnau@gmail.com>
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>

pkgname=recutils
pkgver=1.8
pkgrel=1
pkgdesc="Set of tools and libraries to access plain text databases called recfiles."
arch=(i686 x86_64)
url="https://www.gnu.org/software/recutils/"
license=('GPL3')
depends=('libgcrypt')
source=("https://ftp.gnu.org/gnu/recutils/$pkgname-$pkgver.tar.gz")
sha256sums=('df8eae69593fdba53e264cbf4b2307dfb82120c09b6fab23e2dad51a89a5b193')

build() {
	cd "$pkgname-$pkgver"
	./configure --prefix=/usr --with-bash-headers
	make
}

check() {
	cd "$pkgname-$pkgver"
	make -k check
}

package() {
	cd "$pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install
}
