# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=rdfind
pkgver=1.3.5
pkgrel=0
pkgdesc="Redundant data find - a program that finds duplicate files"
url="http://rdfind.pauldreik.se"
arch="all"
license="GPL-2.0 "
makedepends="nettle-dev"
subpackages="$pkgname-doc"
source="https://rdfind.pauldreik.se/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"


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

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

package() {
	cd "$builddir"
	make DESTDIR="${pkgdir}/" install
}

sha512sums="e546dd6022df3a6de606e57f184820c693cc5533b9e101a42dbca577d20e0ccd32b5f3cfb579bf94cf7ecbfb86fa0915427ab0c93ee9a94f66ffa54ff50ccfd1  rdfind-1.3.5.tar.gz"
