# Template file for 'entr'
pkgname=entr
version=3.3
revision=1
build_style=gnu-makefile
short_desc="A utility for running arbitrary commands when files change"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="ISC"
homepage="http://entrproject.org"
distfiles="$homepage/code/$pkgname-$version.tar.gz"
checksum=701cb7b0a72b6c9ba794ad7cc15b6ebcc2e0c978bb6906c8ae407567a044461f

post_extract() {
	mv ${XBPS_BUILDDIR}/eradman-entr-* $wrksrc
	case "$XBPS_TARGET_MACHINE" in
		*-musl) # No need for _LINUX_PORT compat.h and strlcpy.c
			sed -i $wrksrc/Makefile.linux -e "s;-D_LINUX_PORT;;"
	esac
}

pre_build() {
	cp Makefile.linux Makefile
}
