userspace/opendoas/ndmake.sh
$ cat ndmake.sh
#!/bin/sh -ue
NAME=opendoas
VERSION=git
RELEASE=1
SOURCE="https://github.com/Duncaen/OpenDoas.git
rowhammer.patch"

build() {
	msg "configuring opendoas..."
	./configure --without-pam || die "configure failed"

	msg "building opendoas..."
	shin CC="${CC:-cc}" LDFLAGS="-static" || die "shin failed"
	samu -j"$NPROC" || die "samu failed"

	msg "installing opendoas..."
	shin CC="${CC:-cc}" LDFLAGS="-static" PREFIX="$PREFIX" DESTDIR="$PKG" || die "shin install failed"
	samu install || die "samu install failed"
}

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