APKBUILD 1.09 KB
Newer Older
A. Wilcox's avatar
A. Wilcox committed
1
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
2
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
A. Wilcox's avatar
A. Wilcox committed
3
pkgname=bison
4
pkgver=3.4.2
A. Wilcox's avatar
A. Wilcox committed
5
pkgrel=0
A. Wilcox's avatar
A. Wilcox committed
6 7
pkgdesc="The GNU general-purpose parser generator"
arch="all"
8 9
[ -n "$BOOTSTRAP" ] && options="!check"
license="GPL-3.0+"
A. Wilcox's avatar
A. Wilcox committed
10 11 12
url="https://www.gnu.org/software/bison/bison.html"
depends="m4"
checkdepends="bison flex"
13
makedepends="perl"
14
provider_priority=1
15
subpackages="$pkgname-doc $pkgname-lang"
16
source="https://ftp.gnu.org/gnu/bison/${pkgname}-${pkgver}.tar.xz"
A. Wilcox's avatar
A. Wilcox committed
17 18 19 20 21 22 23 24 25 26 27 28 29

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--datadir=/usr/share \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man
	make
}

check() {
30 31 32 33
	# Work around for Bison 3.4.x test failure
	for _calc in {,lex,mf,rec,rp}calc; do
		make -j1 examples/c/$_calc/$_calc
	done
A. Wilcox's avatar
A. Wilcox committed
34 35 36 37 38 39 40 41 42
	make check
}

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

43
sha512sums="00d2b37187b93100ec4b220ce2752d12ccf68f9d0d39b380d375d36dd8a22aa1d6e60156918f95e4493f9531c5d42d8fad38fd807307b491c1ca7ca4177823d9  bison-3.4.2.tar.xz"