vp-build/srcpkgs/mon/template

24 lines
600 B
Bash

# Template file for 'mon'
pkgname=mon
version=1.2.3
revision=2
build_style=gnu-makefile
short_desc="Simple single-process process monitoring program written in C"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="MIT"
homepage="https://github.com/tj/mon"
distfiles="https://github.com/tj/mon/archive/${version}.tar.gz"
checksum=978711a1d37ede3fc5a05c778a2365ee234b196a44b6c0c69078a6c459e686ac
CFLAGS="-Ideps -std=c99 -D_GNU_SOURCE"
post_extract() {
sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' Makefile
}
do_install() {
vbin mon
vsconf example/on_error.sh
vsconf example/program.sh
vdoc Readme.md
}