APKBUILD 783 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bison
Natanael Copa's avatar
Natanael Copa committed
3 4
pkgver=2.4.3
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5
pkgdesc="The GNU general-purpose parser generator"
6
license="GPL"
Natanael Copa's avatar
Natanael Copa committed
7
url="http://www.gnu.org/software/bison/bison.html"
Natanael Copa's avatar
Natanael Copa committed
8 9 10
depends="m4"
source="ftp://ftp.gnu.org/gnu/bison/${pkgname}-${pkgver}.tar.gz
	gnulib-uclibc.patch"
Natanael Copa's avatar
Natanael Copa committed
11 12
subpackages="$pkgname-doc"

Natanael Copa's avatar
Natanael Copa committed
13 14 15 16 17 18
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	cd "$_builddir"
	patch -p1 -i "$srcdir"/gnulib-uclibc.patch
}

Natanael Copa's avatar
Natanael Copa committed
19
build() {
Natanael Copa's avatar
Natanael Copa committed
20
	cd "$_builddir"
21 22 23 24
	./configure --prefix=/usr \
		--datadir=/usr/share \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man
Natanael Copa's avatar
Natanael Copa committed
25
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
26 27 28 29
}

package() {
	cd "$_builddir"
30
	make DESTDIR="$pkgdir" install
Natanael Copa's avatar
Natanael Copa committed
31 32
}

Natanael Copa's avatar
Natanael Copa committed
33
md5sums="ea45c778b36bdc7a720096819e292a73  bison-2.4.3.tar.gz
Natanael Copa's avatar
Natanael Copa committed
34
20a7dedec0e9e0ee7107e33e798ffdbe  gnulib-uclibc.patch"