Subject: [alpine-aports] [PATCH] testing/nawk: new aport

From: Steffen Nurpmeso <[email-masked]>
Date: Wed, 25 Oct 2017 23:07:26 +0200

https://www.cs.princeton.edu/~bwk/btl.mirror/
The one, true implementation of AWK
---
 testing/nawk/APKBUILD | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 testing/nawk/APKBUILD

diff --git a/testing/nawk/APKBUILD b/testing/nawk/APKBUILD
new file mode 100644
index 0000000..d2d55d3
--- /dev/null
+++ b/testing/nawk/APKBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Steffen Nurpmeso <[email-masked]>
+pkgname=nawk
+pkgver=2012.12.20
+pkgrel=0
+pkgdesc="The one, true implementation of AWK"
+url="https://www.cs.princeton.edu/~bwk/btl.mirror/"
+arch=all
+license=MIT
+depends=
+makedepends=byacc
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://www.cs.princeton.edu/~bwk/btl.mirror/awk.tar.gz"
+
+builddir="$srcdir"
+options=!check
+
+# LD_LIBRARY_PATH is included via -rpath, so use system defaults only.
+# And ensure no other paths sneak in.
+unset LIBRARY_PATH LD_RUN_PATH
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+C_INCLUDE_PATH=/usr/include
+LD_LIBRARY_PATH=/lib:/usr/lib
+export PATH C_INCLUDE_PATH LD_LIBRARY_PATH
+
+build() {
+	cd "$builddir"
+
+	make YACC='yacc -d -s'
+}
+
+package() {
+	cd "$builddir"
+
+	install -Dm755 a.out "$pkgdir"/usr/bin/$pkgname
+
+	install -Dm644 awk.1 "$pkgdir"/usr/share/man/man1/$pkgname.1
+}
+
+sha512sums="1dd62e1aa4c8cfad7ce599b10d88e9b450ecae3217cf8327cc0f3ce77d0d0dcb731101b8f211066462d46dc4ef23e20ccd7f70d799d7d48940026abe8fa79d4f  nawk-2012.12.20.tar.gz"
-- 
2.14.2

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---