38 lines
934 B
Bash
38 lines
934 B
Bash
# Template file for 'nawk'
|
|
pkgname=nawk
|
|
version=20220122
|
|
revision=1
|
|
wrksrc="awk-${version}"
|
|
hostmakedepends="bison"
|
|
short_desc="The one, true implementation of AWK"
|
|
maintainer="mmnmnnmnmm <mnnnm@disroot.org>"
|
|
license="SMLNJ"
|
|
homepage="https://github.com/onetrueawk/awk"
|
|
changelog="https://raw.githubusercontent.com/onetrueawk/awk/master/ChangeLog"
|
|
distfiles="https://github.com/onetrueawk/awk/archive/refs/tags/${version}.tar.gz"
|
|
checksum=720a06ff8dcc12686a5176e8a4c74b1295753df816e38468a6cf077562d54042
|
|
|
|
provides="awk-0_1"
|
|
alternatives="
|
|
awk:awk:/usr/bin/nawk
|
|
awk:awk.1:/usr/share/man/man1/nawk.1"
|
|
|
|
do_configure() {
|
|
vsed -i '/maketab/{s/HOSTCC/BUILD_CC/;s/CFLAGS/BUILD_CFLAGS/}' makefile
|
|
vsed -i 's/-lm/$(LDFLAGS) &/' makefile
|
|
}
|
|
|
|
do_build() {
|
|
make CC=$CC CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS -DHAS_ISBLANK" LDFLAGS="$LDFLAGS"
|
|
}
|
|
|
|
do_check() {
|
|
make check
|
|
}
|
|
|
|
do_install() {
|
|
vbin a.out nawk
|
|
vman awk.1 nawk.1
|
|
vlicense LICENSE
|
|
}
|