summaryrefslogtreecommitdiff
path: root/system/mawk/APKBUILD
blob: 64b641031688f5efb3f849499bbb9a15342accc7 (plain) (blame)
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
30
31
32
33
34
35
36
37
38
39
40
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=mawk
pkgver=1.3.4.20230525
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="704c1a94569e8e953af7b00ea81efa20df03483f57e4183935e73df62309874644f2250a307b136af34ce3df62d90170d8afe7b3a86eeacb31cf5845056126cb  mawk-1.3.4-20230525.tgz"