userspace/ugrep/ndmake.sh
$ cat ndmake.sh
#!/bin/sh -ue
NAME=ugrep
VERSION=git
RELEASE=1
SOURCE="https://github.com/Genivia/ugrep"

build() {
	msg "configuring ugrep..."
	./configure --prefix="$PREFIX" --enable-static --without-boost-regex --without-pcre2 || die "configure failed"

	msg "fixing autotools timestamps..."
	touch aclocal.m4 Makefile.am lib/Makefile.am src/Makefile.am
	touch config.h.in Makefile.in lib/Makefile.in src/Makefile.in
	touch configure

	msg "building ugrep..."
	gmake -j"$NPROC" || die "gmake failed"
	gmake DESTDIR="$PKG" install || die "gmake install failed"
}

. ${0%/*}/../../libsh/libdmake.sh