mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-17 06:32:36 +01:00
30 lines
779 B
Plaintext
30 lines
779 B
Plaintext
# 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"
|