# Contributor: A. Wilcox # Maintainer: A. Wilcox pkgname=mawk pkgver=1.3.4.20200120 pkgrel=1 pkgdesc="Pattern scanning and text processing language" url="https://invisible-island.net/mawk/mawk.html" arch="all" license="BSD-3-Clause" depends="" makedepends="" subpackages="$pkgname-doc" _dlver="${pkgver%.*}-${pkgver##*.}" source="https://invisible-mirror.net/archives/$pkgname/$pkgname-$_dlver.tgz" builddir="$srcdir/$pkgname-$_dlver" build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --bindir=/bin make } check() { make check } package() { make DESTDIR="$pkgdir" install ln -s mawk "$pkgdir"/bin/awk mkdir -p "$pkgdir"/usr/bin ln -s ../../bin/awk "$pkgdir"/usr/bin/awk } sha512sums="14d9a6642ce931bf6457d248fc2d6da4f0ea7541976ca282ea708b26df048f86fdf92c27f72d497501ccd43a244d1d1a606f1a2f266a7558306fea35dcc3041b mawk-1.3.4-20200120.tgz"