pkgname=bison pkgver=3.8.2 pkgrel=1 pkgdesc="The GNU general-purpose parser generator" arch=('x86_64') url="https://www.gnu.org/software/bison/" license=('GPL-3.0-or-later') groups=('base-devel') depends=('glibc' 'm4' 'gettext' 'bash') source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz) sha256sums=(9bba0214ccf7f1079c5d59210045227bcf619519840ebfa80cd3849cff5a5bf2) build() { cd ${pkgname}-${pkgver} CFLAGS+=' -ffat-lto-objects' local configure_args=( --docdir=/usr/share/doc/${pkgname}-${pkgver} ${configure_options} ) ./configure ${configure_args[@]} make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install }