mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 06:07:00 +02:00
nawk: update to 20240423.
Adopted.
This commit is contained in:
parent
b45ab0b41b
commit
9b1493efba
1 changed files with 7 additions and 13 deletions
|
@ -1,34 +1,28 @@
|
|||
# Template file for 'nawk'
|
||||
pkgname=nawk
|
||||
version=20230911
|
||||
version=20240423
|
||||
revision=1
|
||||
build_style=gnu-makefile
|
||||
hostmakedepends="bison"
|
||||
short_desc="The one, true implementation of AWK"
|
||||
maintainer="mmnmnnmnmm <mnnnm@disroot.org>"
|
||||
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
|
||||
|
||||
provides="awk-0_1"
|
||||
alternatives="
|
||||
awk:awk:/usr/bin/nawk
|
||||
awk:awk.1:/usr/share/man/man1/nawk.1"
|
||||
provides="awk-0_1"
|
||||
|
||||
do_configure() {
|
||||
CPPFLAGS="-DHAS_ISBLANK"
|
||||
|
||||
post_patch() {
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue