summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoraksr2018-08-08 16:29:29 +0200
committeraksr2018-08-08 16:29:29 +0200
commitdf101c49374fdc7554325346a385716dec8a84ad (patch)
tree19e786daf5793d39399a80e451f5e345bc79886a
downloadaur-df101c49374fdc7554325346a385716dec8a84ad.tar.gz
Start.
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD49
-rw-r--r--manpage-naming.patch43
3 files changed, 117 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1a6c8d8c16d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+# Generated by mksrcinfo v8
+# Wed Aug 8 14:29:29 UTC 2018
+pkgbase = nawk-git
+ pkgdesc = Brian Kernighan's Awk - With Fixes
+ pkgver = r26.24e81c2
+ pkgrel = 1
+ url = https://github.com/arnoldrobbins/bwk-awk
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ depends = glibc
+ conflicts = nawk
+ options = !makeflags
+ source = nawk-git::git+https://github.com/arnoldrobbins/bwk-awk
+ source = manpage-naming.patch
+ md5sums = SKIP
+ md5sums = f79cfc163176b6b06891f4dbeadc218f
+ sha1sums = SKIP
+ sha1sums = a729df9321d409402c023937260e5627fa72f811
+ sha256sums = SKIP
+ sha256sums = 5f0e0e737626b5060559a1a97dfc191875d6b2f784aa4fe2256add03d38f968b
+
+pkgname = nawk-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..86dde14051d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: aksr <aksr at t-com dot me>
+pkgname=nawk-git
+pkgver=r26.24e81c2
+pkgrel=1
+epoch=
+pkgdesc="Brian Kernighan's Awk - With Fixes"
+arch=('i686' 'x86_64')
+url="https://github.com/arnoldrobbins/bwk-awk"
+license=('MIT')
+groups=()
+depends=(glibc)
+makedepends=(git)
+optdepends=()
+checkdepends=()
+provides=()
+conflicts=("${pkgname%-*}")
+replaces=()
+backup=()
+options=('!makeflags')
+changelog=
+install=
+source=("$pkgname::git+$url" manpage-naming.patch)
+noextract=()
+md5sums=('SKIP' 'f79cfc163176b6b06891f4dbeadc218f')
+sha1sums=('SKIP' 'a729df9321d409402c023937260e5627fa72f811')
+sha256sums=('SKIP' '5f0e0e737626b5060559a1a97dfc191875d6b2f784aa4fe2256add03d38f968b')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/$pkgname"
+ patch -Np1 awk.1 ../manpage-naming.patch
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ make "CPPFLAGS=-DHAS_ISBLANK $CPPFLAGS" "LDFLAGS=$LDFLAGS" "CFLAGS=$CFLAGS"
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ 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"
+}
+
diff --git a/manpage-naming.patch b/manpage-naming.patch
new file mode 100644
index 00000000000..d6dfdefb85d
--- /dev/null
+++ b/manpage-naming.patch
@@ -0,0 +1,43 @@
+--- awk.1
++++ awk.1
+@@ -7,12 +7,11 @@
+ .fi
+ .ft 1
+ ..
+-.TH AWK 1
+-.CT 1 files prog_other
++.TH NAWK 1
+ .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 +30,7 @@
+ .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
+@@ -197,7 +196,6 @@
+ .BR atan2
+ are built in.
+ Other built-in functions:
+-.TF length
+ .TP
+ .B length
+ the length of its argument
+@@ -417,7 +415,6 @@
+ do not combine with other patterns.
+ .PP
+ Variable names with special meanings:
+-.TF FILENAME
+ .TP
+ .B ARGC
+ argument count, assignable