blob: 1a8cf4935d37d69159842d15c4004e7345a0062f (
plain) (
tree)
|
|
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=mawk
pkgver=1.3.4.20230322
pkgrel=0
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="475f64acfbde686caf65ae3f227b75e1c2578011333467612d44c0e4658a49fa6c9c75ad3338c7ffd33e24d68b3d8156a0f1ad1189b60833597016060e6695c4 mawk-1.3.4-20230322.tgz"
|