#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer	: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website		: https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=recutils
pkgver=1.9
pkgrel=01
pkgdesc="Set of tools and libraries to access plain text databases called recfiles."
arch=(i686 x86_64)
url="https://www.gnu.org/software/recutils/"
depends=('libgcrypt')
checkdepends=('check')
# Jose E. Marchesi <jemarch.at.gnu.org>
source=("https://ftp.gnu.org/gnu/recutils/$pkgname-$pkgver.tar.gz"
        "https://ftp.gnu.org/gnu/recutils/$pkgname-$pkgver.tar.gz.sig")

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

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

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

#---- license gpg-key sha256sums ----

license=('GPL')

validpgpkeys=("BDFA5717FC1DD35C2C3832A23EF90523B304AF08")

sha256sums=(6301592b0020c14b456757ef5d434d49f6027b8e5f3a499d13362f205c486e0e # recutils-1.9.tar.gz
	acc417c04795fff819a516520dc0d976eb15f3789d041abcf77a1fd52fb24891) #  recutils-1.9.tar.gz.sig

