utils/kp2/ndmake.sh
$ cat ndmake.sh
#!/bin/sh -ue
NAME=kp2
VERSION=git
RELEASE=1
SOURCE="https://github.com/tobischo/kp2"
build() {
git apply < "$PORTDIR/files/info-password.patch"
msg "building kp2..."
CGO_ENABLED=0 go build .
msg "installing kp2..."
mkdir -p "$PKG/$PREFIX/bin"
install -m0755 kp2 "$PKG/$PREFIX/bin/kp2" || "can't install it"
}
. ${0%/*}/../../libsh/libdmake.sh
