summaryrefslogtreecommitdiff
path: root/system/bison/APKBUILD
blob: f414e7542a6d5d856432abe7ed6924e746672d0f (plain) (blame)
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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=bison
pkgver=3.0.5
pkgrel=0
pkgdesc="The GNU general-purpose parser generator"
arch="all"
[ -n "$BOOTSTRAP" ] && options="!check"
license="GPL-3.0+"
url="https://www.gnu.org/software/bison/bison.html"
depends="m4"
checkdepends="bison flex"
makedepends="perl"
subpackages="$pkgname-doc $pkgname-lang"
source="ftp://ftp.gnu.org/gnu/bison/${pkgname}-${pkgver}.tar.xz"

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
}

sha512sums="00b448db8abe91b07e32ff5273c6617bc1350d806f92073a9472f4c2f0de5d22c152795674171b74f2eb9eff8d36f8173b82dacb215601bb071ae39404d4a8a2  bison-3.0.5.tar.xz"