-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
30 lines (27 loc) · 831 Bytes
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Template file for 'nawk'
pkgname=nawk
version=20240423
revision=1
build_style=gnu-makefile
hostmakedepends="bison"
short_desc="The one, true implementation of AWK"
maintainer="Leah Neukirchen <leah@vuxu.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/2ndEdition.tar.gz"
checksum=6c3dbd72b6c4dd58340686df0b189a7813cf49aeeb9aa14846dfbeca1bc8d3a7
alternatives="
awk:awk:/usr/bin/nawk
awk:awk.1:/usr/share/man/man1/nawk.1"
provides="awk-0_1"
CPPFLAGS="-DHAS_ISBLANK"
post_patch() {
vsed -i '/maketab/{s/HOSTCC/BUILD_CC/;s/CFLAGS/BUILD_CFLAGS/}' makefile
vsed -i 's/-lm/$(LDFLAGS) &/' makefile
}
do_install() {
vbin a.out nawk
vman awk.1 nawk.1
vlicense LICENSE
}