summaryrefslogblamecommitdiff
path: root/system/bison/APKBUILD
blob: a053dd0b7f3c78083e6d4532d4327f3ce6c706b8 (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.5.3
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 musl-locales"
makedepends="perl"
provider_priority=1
subpackages="$pkgname-doc $pkgname-lang"
source="https://ftp.gnu.org/gnu/bison/${pkgname}-${pkgver}.tar.xz"

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

check() {
	# Work around for Bison 3.4.x test failure
	for _calc in calc lexcalc mfcalc reccalc rpcalc; do
		make -j1 examples/c/$_calc/$_calc
	done
	make check
}

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

sha512sums="888a1e8d4aeda3ff2d7d0a3a88b63bbfe89bdb718cc64d48c244e05fe6c6cd39526fd88143db379fef3071cf6c2dc2ab2fd69834c24acb23ed5f739584ff6308  bison-3.5.3.tar.xz"