void-packages/srcpkgs/entr/template
cr6git b443a172c5 entr: fix wrong checksum, add license
Closes: #10455 [via git-merge-pr]
2018-01-06 14:47:49 +01:00

27 lines
682 B
Bash

# Template file for 'entr'
pkgname=entr
version=3.9
revision=1
build_style=gnu-makefile
short_desc="A utility for running arbitrary commands when files change"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="ISC"
homepage="http://entrproject.org"
distfiles="$homepage/code/$pkgname-$version.tar.gz"
checksum=02d78f18ae530e64bfbb9d8e0250962f85946e10850dd065899d03af15f26876
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
}
post_install() {
vlicense LICENSE
}