aboutsummaryrefslogtreecommitdiffstats
path: root/main/bison/APKBUILD
blob: 69976035742b30f86896b6db8687a74a66e593ef (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>
pkgname=bison
pkgver=2.6.4
pkgrel=0
pkgdesc="The GNU general-purpose parser generator"
arch="all"
license="GPL"
url="http://www.gnu.org/software/bison/bison.html"
makedepends="perl"
depends="m4"
source="ftp://ftp.gnu.org/gnu/bison/${pkgname}-${pkgver}.tar.xz"
subpackages="$pkgname-doc"

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

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--datadir=/usr/share \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
}

md5sums="8b2dc57eb9d2d6de4715d30de6b2ee07  bison-2.6.4.tar.xz"