core/tzcode/ndmake.sh
$ cat ndmake.sh
#!/bin/sh -ue
NAME=tzcode
VERSION=2026
RELEASE=1
SOURCE="https://data.iana.org/time-zones/releases/tzcode`date +%Y`a.tar.gz"

build() {
	cp "$PORTDIR/files/version.h" .
	cp "$PORTDIR/files/tzdir.h" .
	LDFLAGS="-static" CFLAGS="-O2 -pipe" clang zic.c -o zic
	mkdir -p "$PKG$PREFIX/bin"
	install -m0755 zic "$PKG$PREFIX/bin"
}

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