# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=fdupes
pkgver=2.1.2
pkgrel=0
pkgdesc="Identify or delete duplicate files in a directory tree"
url=" "
arch="all"
options="!check"  # No test suite.
license="MIT"
depends=""
makedepends="autoconf automake ncurses-dev pcre2-dev"
subpackages="$pkgname-doc"
source="fdupes-$pkgver.tar.gz::https://github.com/adrianlopezroche/fdupes/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -vif
}

build() {
	LIBS="-ltinfow" ./configure \
		--prefix=/usr
	make
}

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

sha512sums="ab16e83ff56f63555e70471d562b2d1e07edc988f2ce10ba633720f1793e8a6432dd13c3dd7340562f5784056591efca947fe2e458c24e7394e71093d0353973  fdupes-2.1.2.tar.gz"