lib/musl-fts/ndmake.sh
$ cat ndmake.sh
#!/bin/sh -ue
NAME=musl-fts
VERSION=git
RELEASE=1
SOURCE="https://github.com/void-linux/musl-fts"
postbuild() {
hdr="$(find . -name fts.h -type f | head -n1)"
[ -n "$hdr" ] || die "fts.h not found after build"
mkdir -p "$PKG/$PREFIX/include"
install -m 644 "$hdr" "$PKG/$PREFIX/include/fts.h" ||
die "failed to install fts.h"
}
. ${0%/*}/../../libsh/libdmake.sh
