wl/velox/ndmake.sh
$ cat ndmake.sh
#!/bin/sh -ue
NAME=velox
VERSION=git
RELEASE=1
SOURCE="https://github.com/michaelforney/velox.git"

build() {
	msg "configuring velox..."
	cat > config.mk <<'EOF'
PREFIX          = /usr
ENABLE_DEBUG    = 0
EOF

	msg "building velox..."
	export PKG_CONFIG="pkg-config --static"
	gmake -j"$NPROC" LDFLAGS="-static" || die "gmake failed"

	msg "installing velox..."
	gmake DESTDIR="$PKG" install || die "gmake install failed"

	msg "installing sample config..."
	install -Dm644 velox.conf.sample "$PKG/etc/velox.conf" || die "config install failed"
}

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