# Contributor: Ɓukasz Jendrysik # Maintainer: Natanael Copa pkgname=bison pkgver=3.4.2 pkgrel=0 pkgdesc="The GNU general-purpose parser generator" arch="all" license="GPL-3.0-or-later" url="https://www.gnu.org/software/bison/bison.html" makedepends="perl" depends="m4" checkdepends="bison flex" [ -n "$BOOTSTRAP" ] && options="!check" source="https://ftp.gnu.org/gnu/bison/bison-$pkgver.tar.xz" subpackages="$pkgname-doc" 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 -j1 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="00d2b37187b93100ec4b220ce2752d12ccf68f9d0d39b380d375d36dd8a22aa1d6e60156918f95e4493f9531c5d42d8fad38fd807307b491c1ca7ca4177823d9 bison-3.4.2.tar.xz"