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

build() {
	msg "configuring swc..."
	cat > config.mk <<'EOF'
PREFIX          = /usr
ENABLE_DEBUG    = 0
ENABLE_STATIC   = 1
ENABLE_SHARED   = 0
ENABLE_LIBUDEV  = 0
ENABLE_XWAYLAND = 0
EOF

	msg "building swc..."
	gmake -j"$NPROC" || die "gmake failed"

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

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