nawk: update to 20210110
This commit is contained in:
parent
742cfb3e83
commit
3c9c041f99
1 changed files with 10 additions and 8 deletions
|
@ -1,16 +1,17 @@
|
||||||
# Template file for 'nawk'
|
# Template file for 'nawk'
|
||||||
pkgname=nawk
|
pkgname=nawk
|
||||||
version=20180827
|
version=20210110
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="awk-${version}"
|
_commit=178f660b5a4fde6f39e8065185373166f55b6e0c
|
||||||
|
wrksrc="awk-${_commit}"
|
||||||
hostmakedepends="bison"
|
hostmakedepends="bison"
|
||||||
short_desc="The one, true implementation of AWK"
|
short_desc="The one, true implementation of AWK"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="mmnmnnmnmm <mnnnm@disroot.org>"
|
||||||
license="SMLNJ"
|
license="SMLNJ"
|
||||||
homepage="https://github.com/onetrueawk/awk"
|
homepage="https://github.com/onetrueawk/awk"
|
||||||
changelog="https://raw.githubusercontent.com/onetrueawk/awk/master/ChangeLog"
|
changelog="https://raw.githubusercontent.com/onetrueawk/awk/master/ChangeLog"
|
||||||
distfiles="https://github.com/onetrueawk/awk/archive/${version}.tar.gz"
|
distfiles="https://github.com/onetrueawk/awk/archive/${_commit}.tar.gz"
|
||||||
checksum=c9232d23410c715234d0c26131a43ae6087462e999a61f038f1790598ce4807f
|
checksum=57bca56b5e84e2148e4ba600f5dcdd376a1a5d374bafe426a386dc17e25ead45
|
||||||
|
|
||||||
provides="awk-0_1"
|
provides="awk-0_1"
|
||||||
alternatives="
|
alternatives="
|
||||||
|
@ -18,13 +19,14 @@ alternatives="
|
||||||
awk:awk.1:/usr/share/man/man1/nawk.1"
|
awk:awk.1:/usr/share/man/man1/nawk.1"
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
sed -i '/maketab/{s/CC/BUILD_CC/;s/CFLAGS/BUILD_CFLAGS/}' makefile
|
vsed -i '/maketab/{s/HOSTCC/BUILD_CC/;s/CFLAGS/BUILD_CFLAGS/}' makefile
|
||||||
sed -i '/YACC = yacc -d -S/ s|^|#|' makefile
|
vsed -i 's/-lm/$(LDFLAGS) &/' makefile
|
||||||
sed -i 's/-lm/$(LDFLAGS) &/' makefile
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
make CC=$CC CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS -DHAS_ISBLANK" LDFLAGS="$LDFLAGS"
|
make CC=$CC CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS -DHAS_ISBLANK" LDFLAGS="$LDFLAGS"
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vbin a.out nawk
|
vbin a.out nawk
|
||||||
vman awk.1 nawk.1
|
vman awk.1 nawk.1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue