# Template file for 'rdfind'
pkgname=rdfind
version=1.8.0
revision=1
build_style=gnu-configure
makedepends="nettle-devel"
checkdepends="tar which"
short_desc="Program that finds duplicate files"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://rdfind.pauldreik.se"
changelog="https://raw.githubusercontent.com/pauldreik/rdfind/main/ChangeLog"
distfiles="https://rdfind.pauldreik.se/rdfind-${version}.tar.gz"
checksum=0a2d0d32002cc2dc0134ee7b649bcc811ecfb2f8d9f672aa476a851152e7af35

pre_configure() {
	# skip tests that don't work as expected in the chroot
	vsed -i Makefile.in \
		-e 's:testcases/hardlink_fails.sh \\:\\:' \
		-e 's:testcases/symlinking_action.sh \\:\\:'
}

case "${XBPS_TARGET_MACHINE}" in
	aarch64) LDFLAGS="-Wl,-znotext";;
esac
