# Description: The one, true implementation of AWK
# URL: https://github.com/onetrueawk/
# (Really: https://www.cs.princeton.edu/~bwk/btl.mirror/)
# Maintainer: Steffen Nurpmeso, steffen at sdaoden dot eu

name=nawk
version=20260426-bsd
realn=awk
gitver=831c1a17821118471ff55f5664cefdd0b29cfd8e
release=1
source=(https://github.com/onetrueawk/${realn}/archive/${gitver}/${realn}-${version}.tar.gz)

build() {
	cd ${realn}-${gitver}

	# Fix term sequence mess in "box-ports -> fakeroot pkgmk" container
	sed -Ei'' 's/^YACC .+$/YACC = bison -d --color=no/' makefile

	make
	install -D a.out "${PKG}"/usr/bin/${name}
	install -D -m 0644 awk.1 "${PKG}"/usr/share/man/man1/${name}.1
}

# s-sht-mode
