aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nawk/APKBUILD
blob: a1f341af85a2d159863b3f81be2ae072329027f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer:
pkgname=nawk
gitrev=33ead6d2393268365253732a3ac566e3d3362b00
pkgver=20190311
pkgrel=0
pkgdesc="The one, true implementation of AWK"
url="https://www.cs.princeton.edu/~bwk/btl.mirror/"
arch=x86_64
license=MIT
depends=
makedepends=byacc
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/onetrueawk/awk/archive/$gitrev.tar.gz"
options="!check"
builddir="$srcdir/awk-$gitrev"

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="ad7ff1ec4f32316c844ec837d2fef0ae12fa823fd8d8266f4c6c7b22ecca0dc34feae7517a2c7b4f2962e6cffe28fe77d40a0a544a1b6aef8bd90c4e9074c21f  $pkgname-$pkgver.tar.gz"