~alpine/aports

[alpine-aports] [PATCH] testing/mawk: new aport

Steffen Nurpmeso <steffen@sdaoden.eu>
Details
Message ID
<8d7ab52a21d7870a7c6d94b1745030a7cffe1c0b.1508968655.git.steffen@sdaoden.eu>
Sender timestamp
1508968655
DKIM signature
missing
Download raw message
Patch: +45 -0
http://invisible-island.net/mawk/mawk.html
An implementation of new/posix awk
---
 testing/mawk/APKBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 testing/mawk/APKBUILD

diff --git a/testing/mawk/APKBUILD b/testing/mawk/APKBUILD
new file mode 100644
index 0000000..f29e865
--- /dev/null
+++ b/testing/mawk/APKBUILD
@@ -0,0 +1,45 @@
# Maintainer: Steffen Nurpmeso <steffen@sdaoden.eu>
pkgname=mawk
pkgver=20171017
pkgrel=0
pkgdesc="An implementation of new/posix awk"
url="http://invisible-island.net/mawk/mawk.html"
arch=all
license=GPL2
depends=
makedepends=byacc
subpackages="$pkgname-doc"
source="https://invisible-mirror.net/archives/mawk/$pkgname-1.3.4-$pkgver.tgz"

builddir="$srcdir/$pkgname-1.3.4-$pkgver"

# 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"

	./configure --with-man2html=/usr/bin/mandoc # xxx not used
	make
}

check() {
	cd "$builddir"

	make check
}
	
package() {
	cd "$builddir"

	install -Dm755 "$pkgname" "$pkgdir"/usr/bin/"$pkgname"

	install -Dm644 man/"$pkgname".1 "$pkgdir"/usr/share/man/man1/"$pkgname".1
}

sha512sums="4ed6ca0ecca12e7409d3d364b72dc6a2b411c61bf53fe8aa0b0cac65a3bdb941921c0b81d94f34c8ac9f4922c8c7566d347b5e6b5c74518ae3a88904f9e20f27  mawk-1.3.4-20171017.tgz"
-- 
2.14.3


-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:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)