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


                                                  
                     
        
                                                       
                                                 

                      

              
                          
                                   

                                                                            

         









                                         



                  
           
                                      
                                        

 
                                                                                                                                                                      
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=mawk
pkgver=1.3.4.20200120
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
	make
}

check() {
	make check
}

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

sha512sums="14d9a6642ce931bf6457d248fc2d6da4f0ea7541976ca282ea708b26df048f86fdf92c27f72d497501ccd43a244d1d1a606f1a2f266a7558306fea35dcc3041b  mawk-1.3.4-20200120.tgz"