editors/kakoune/ndmake.sh
$ cat ndmake.sh
#!/bin/sh -ue
NAME=kakoune
VERSION=git
RELEASE=1
SOURCE="https://github.com/mawww/kakoune.git"

build() {
    cd "$SRC"

    make -j"$NPROC" \
        debug=no \
        static=yes \
        gzip_man=yes \
        ${BUILD_OPT} \
        || die "make failed"

    make PREFIX="$PREFIX" \
        DESTDIR="$PKG" \
        debug=no \
        static=yes \
        install \
        || die "make install failed"
}

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