aboutsummaryrefslogtreecommitdiffstats
path: root/main/gawk/APKBUILD
blob: 6f7d01398a97cd2ffb46fcebfdad26bdcdac4359 (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
34
35
36
37
38
39
40
41
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Michael Mason <ms13sp@gmail.com>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
pkgname=gawk
pkgver=4.1.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"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	cd "$_builddir"
}

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

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/gawk/*.la || return 1
}

md5sums="a2a26543ce410eb74bc4a508349ed09a  gawk-4.1.1.tar.xz"
sha256sums="efd4c6aafb1ce996309fc903ceb625e7012221c464eb72483dbb23adef1ee8db  gawk-4.1.1.tar.xz"
sha512sums="f11d7ef03e69f554baf80b0e75c2de8916aaefd5481c2ed8b83cde8edf09f765c18a4cef6175934fa29cc1afa30b8f7e54266b28377705eaca154146e03f634b  gawk-4.1.1.tar.xz"