From cc54d6b7245e8eaaf949c6fc1b52d78159bc816e Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Sun, 2 Aug 2015 23:05:21 +0200 Subject: [PATCH] New package: entr-3.2 --- srcpkgs/entr/template | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 srcpkgs/entr/template diff --git a/srcpkgs/entr/template b/srcpkgs/entr/template new file mode 100644 index 00000000000..6ddf3f12596 --- /dev/null +++ b/srcpkgs/entr/template @@ -0,0 +1,23 @@ +# Template file for 'entr' +pkgname=entr +version=3.2 +revision=1 +build_style=gnu-makefile +short_desc="A utility for running arbitrary commands when files change" +maintainer="Andrea Brancaleoni " +license="ISC" +homepage="http://entrproject.org" +distfiles="$homepage/code/$pkgname-$version.tar.gz" +checksum=b1eee00afbeccf03010c1c557436854be6aaf0ef9b72ab8d44b94affdd7d7146 + +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 +}