APKBUILD 982 Bytes
Newer Older
1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
2 3
# Contributor: Michael Mason <ms13sp@gmail.com>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
TBK's avatar
TBK committed
4
# Contributor: TBK <alpine@jjtc.eu>
Michael Mason's avatar
Michael Mason committed
5
pkgname=gawk
J0WI's avatar
J0WI committed
6
pkgver=5.0.1
7
pkgrel=0
Michael Mason's avatar
Michael Mason committed
8
pkgdesc="GNU awk pattern-matching language"
9
url="https://www.gnu.org/software/gawk/gawk.html"
Natanael Copa's avatar
Natanael Copa committed
10
arch="all"
11
license="GPL-3.0-or-later"
J0WI's avatar
J0WI committed
12 13
options="!check" # failing tests
checkdepends="coreutils diffutils"
Michael Mason's avatar
Michael Mason committed
14
subpackages="$pkgname-doc"
15
source="https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"
TBK's avatar
TBK committed
16
builddir="$srcdir/$pkgname-$pkgver"
Michael Mason's avatar
Michael Mason committed
17

18
build() {
19 20 21 22
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Michael Mason's avatar
Michael Mason committed
23 24 25
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
TBK's avatar
TBK committed
26 27
		--disable-nls
	make
Natanael Copa's avatar
Natanael Copa committed
28 29
}

J0WI's avatar
J0WI committed
30 31 32 33
check() {
	make check
}

Natanael Copa's avatar
Natanael Copa committed
34
package() {
TBK's avatar
TBK committed
35
	make DESTDIR="$pkgdir" install
Michael Mason's avatar
Michael Mason committed
36 37
}

J0WI's avatar
J0WI committed
38
sha512sums="ff9842a91035f843482d93eac8a35cddf2ce16acaa43a0112c1efff08802aebf705ee70d47eff74a190dca7be330c31f7204ad27cb63bdee65333f9b9c984212  gawk-5.0.1.tar.xz"