aboutsummaryrefslogtreecommitdiffstats
path: root/main/bison/APKBUILD
blob: 9f4fa90b75a204d6b8beada4dba2a7468ba0d543 (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
42
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bison
pkgver=3.0.1
pkgrel=1
pkgdesc="The GNU general-purpose parser generator"
arch="all"
license="GPL3+"
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"
	LIBS="-lrt" ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--datadir=/usr/share \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -rf "$pkgdir"/usr/lib/charset.alias
	rmdir -p "$pkgdir"/usr/lib 2>/dev/null
	return 0
}

md5sums="032a7b7b9f1a6e278ccde73f82cec5c2  bison-3.0.1.tar.xz"
sha256sums="944efb03b46d831cef452bfa44620e5b30f7de999902a70d96021a0a77f5a2cb  bison-3.0.1.tar.xz"
sha512sums="6f2be596acb0e6c910065fe4ab3e427ad25d6f4f03dcf6756a31d66aaab9b690cd67337ad151904d56335f4b6b7e9a66ea094a16f156ecef073156b75d011a96  bison-3.0.1.tar.xz"