summaryrefslogblamecommitdiff
path: root/system/mawk/APKBUILD
blob: 8f2cd7faf6a6f0fd371143be95226ddd98fa784e (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                  
                     
        
                                                       
                                                 


                          
                                   

                                                                            















                                         
                                        






                      
                                                                                                                                                                      
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=mawk
pkgver=1.3.4.20171017
pkgrel=0
pkgdesc="Pattern scanning and text processing language"
url="https://invisible-island.net/mawk/mawk.html"
arch="all"
license="BSD-3-Clause"
subpackages="$pkgname-doc"
_dlver="${pkgver%.*}-${pkgver##*.}"
source="https://invisible-mirror.net/archives/$pkgname/$pkgname-$_dlver.tgz"
builddir="$srcdir/$pkgname-$_dlver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	ln -s mawk "$pkgdir"/usr/bin/awk
}

check() {
	cd "$builddir"
	make check
}

sha512sums="4ed6ca0ecca12e7409d3d364b72dc6a2b411c61bf53fe8aa0b0cac65a3bdb941921c0b81d94f34c8ac9f4922c8c7566d347b5e6b5c74518ae3a88904f9e20f27  mawk-1.3.4-20171017.tgz"