summaryrefslogtreecommitdiffstats
path: root/main/gawk/APKBUILD
blob: a17cb74d621e5866dac9a12aa57a7b5775f58d5d (plain)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Michael Mason <ms13sp@gmail.com>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
pkgname=gawk
pkgver=4.0.1
pkgrel=0
pkgdesc="GNU awk pattern-matching language"
url="http://www.gnu.org/software/gawk/gawk.html"
arch="all"
license="GPL"
subpackages="$pkgname-doc"
source="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"

build() {
	cd "$srcdir/$pkgname-$pkgver"

	./configure --prefix=/usr \
		--build=${CBUILD} \
		--host=${CHOST} \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-nls
	make || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install

}

md5sums="a601b032c39cd982f34272664f8afa49  gawk-4.0.1.tar.xz"