# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=yafic
pkgver=1.2.2
pkgrel=2
pkgdesc="Yet Another File Integrity Checker"
url="https://www.saddi.com/software/yafic/"
arch="all"
license="BSD"
makedepends="db-dev libressl-dev"
subpackages="$pkgname-doc"
source="http://prdownloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

check() {
	cd "$builddir"
	make check
}

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc/yafic \
		--mandir=/usr/share/man
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -Dm0644 yafic.conf.sample "$pkgdir"/etc/yafic/yafic.conf
}


sha512sums="8e05a0838fc2063f1c6bb69d660e9ff5c9fbdc4199e1396232327498c04d037b35307c348d64d928e561875f5cf0ad40c24fd097680cd814b2308608cf738957  yafic-1.2.2.tar.gz"
