SUMMARY="A program for identifying or deleting duplicate files"
DESCRIPTION="fdupes is a program written by Adrian Lopez to scan directories for duplicate files, \
with options to list, delete or replace the files with hardlinks pointing to the duplicate. It \
first compares file sizes and MD5 signatures, and then performs a byte-by-byte check for \
verification."
HOMEPAGE="https://github.com/adrianlopezroche/fdupes"
COPYRIGHT="1999-2020 Adrian Lopez"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/adrianlopezroche/fdupes/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="47536dad3f628b49420d60be55417238e537902a7461e19f199092ab8b24e8f1"
PATCHES="fdupes-$portVersion.patchset"

ARCHITECTURES="all"

PROVIDES="
	fdupes = $portVersion
	cmd:fdupes = $portVersion
	"
REQUIRES="
	haiku
	lib:libncursesw
	lib:libpcre2_32
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libncursesw
	devel:libpcre2_32
	"
BUILD_PREREQUIRES="
	cmd:autoreconf
	cmd:autoconf
	cmd:aclocal
	cmd:awk
	cmd:gcc
	cmd:make
	cmd:sed
	cmd:pkg_config
	"

BUILD()
{
	autoreconf -fi
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}
