[arch-commits] Commit in (5 files)
Jelle van der Waa
jelle at archlinux.org
Sun Dec 20 14:45:31 UTC 2020
Date: Sunday, December 20, 2020 @ 14:45:31
Author: jelle
Revision: 780431
extra2community: Moving nawk from extra to community
Added:
nawk/
nawk/repos/
nawk/trunk/
nawk/trunk/PKGBUILD
nawk/trunk/manpage-naming.patch
----------------------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++
manpage-naming.patch | 41 ++++++++++++++++++++++++++++++++++++
2 files changed, 96 insertions(+)
Added: nawk/trunk/PKGBUILD
===================================================================
--- nawk/trunk/PKGBUILD (rev 0)
+++ nawk/trunk/PKGBUILD 2020-12-20 14:45:31 UTC (rev 780431)
@@ -0,0 +1,55 @@
+# Maintainer: Dave Reisner <dreisner at archlinux.org>
+
+pkgname=nawk
+pkgver=20180827
+pkgrel=2
+pkgdesc="The one, true implementation of AWK"
+url="https://github.com/onetrueawk/awk"
+license=('custom')
+arch=('x86_64')
+options=('!makeflags')
+depends=('glibc')
+makedepends=('git')
+source=(git+https://github.com/onetrueawk/awk#tag=$pkgver
+ 'manpage-naming.patch')
+md5sums=('SKIP'
+ '5413692140f8366f8ae6bcecc9a40f2f')
+
+pkgver() {
+ cd awk
+
+ git describe --tags
+}
+
+prepare() {
+ cd awk
+
+ # awk -> nawk
+ patch -Np1 <"$srcdir"/manpage-naming.patch
+
+ bsdtar xf awktest.tar
+}
+
+check() {
+ cd awk
+
+ ./REGRESS
+}
+
+build() {
+ cd awk
+
+ # the final linking step doesn't honor LDFLAGS, so let's just throw it all
+ # together into CFLAGS.
+ make \
+ "CPPFLAGS=-DHAS_ISBLANK $CPPFLAGS" \
+ "CFLAGS=$CFLAGS $LDFLAGS"
+}
+
+package() {
+ cd awk
+
+ install -Dm755 a.out "$pkgdir/usr/bin/nawk"
+ install -Dm644 awk.1 "$pkgdir/usr/share/man/man1/nawk.1"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/nawk/LICENSE"
+}
Added: nawk/trunk/manpage-naming.patch
===================================================================
--- nawk/trunk/manpage-naming.patch (rev 0)
+++ nawk/trunk/manpage-naming.patch 2020-12-20 14:45:31 UTC (rev 780431)
@@ -0,0 +1,41 @@
+diff --git a/awk.1 b/awk.1
+index 5830143..339271e 100644
+--- a/awk.1
++++ b/awk.1
+@@ -7,12 +7,12 @@
+ .fi
+ .ft 1
+ ..
+-.TH AWK 1
++.TH NAWK 1
+ .CT 1 files prog_other
+ .SH NAME
+-awk \- pattern-directed scanning and processing language
++nawk \- pattern-directed scanning and processing language
+ .SH SYNOPSIS
+-.B awk
++.B nawk
+ [
+ .BI \-F
+ .I fs
+@@ -31,7 +31,7 @@ awk \- pattern-directed scanning and processing language
+ .I file ...
+ ]
+ .SH DESCRIPTION
+-.I Awk
++.I Nawk
+ scans each input
+ .I file
+ for lines that match any of a set of patterns specified literally in
+@@ -426,7 +426,7 @@ and
+ do not combine with other patterns.
+ They may appear multiple times in a program and execute
+ in the order they are read by
+-.IR awk .
++.IR nawk .
+ .PP
+ Variable names with special meanings:
+ .TF FILENAME
+--
+2.18.0
+
More information about the arch-commits
mailing list