summaryrefslogblamecommitdiff
path: root/system/bison/APKBUILD
blob: f414e7542a6d5d856432abe7ed6924e746672d0f (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                   
                                                 
             

            

                                                  

                                       
                                                   

                         

                                        
                                                                
























                                                      
                                                                                                                                                                 
# 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"