APKBUILD 1.01 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
A. Wilcox's avatar
A. Wilcox committed
4 5
pkgver=3.3.2
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 30 31 32 33 34 35 36 37 38 39 40 41

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

check() {
	cd "$builddir"
	make check
}

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

A. Wilcox's avatar
A. Wilcox committed
42
sha512sums="63c67291ea1bd00f4412fc589ffb891ede3e2577253016a9a185e00fb2d702371f3862486639a8f52f8a887f340a639575ff3b7ba93c152170cbfd8c9585c1dc  bison-3.3.2.tar.xz"