[alpine-aports] testing/nawk: new aport
diff mbox

Message ID 6b8cc9be95948acdf9ed3d241dd32d5ddd77ec32.1508965646.git.steffen@sdaoden.eu
State Accepted
Headers show

Commit Message

Steffen Nurpmeso Oct. 25, 2017, 9:07 p.m. UTC
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

Patch
diff mbox

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 <steffen@sdaoden.eu>
+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"