From a51190774a4be349ed907b0960fdc032ba8d1ecb Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Sat, 7 Sep 2024 23:18:11 +0800 Subject: [PATCH] bison 3.8.2-1 --- bison/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 bison/PKGBUILD diff --git a/bison/PKGBUILD b/bison/PKGBUILD new file mode 100644 index 0000000..0d3ac33 --- /dev/null +++ b/bison/PKGBUILD @@ -0,0 +1,32 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +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=('GPL3') +groups=('base-devel') +depends=('glibc' 'm4' 'bash' 'gettext') +source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz) +sha256sums=(9bba0214ccf7f1079c5d59210045227bcf619519840ebfa80cd3849cff5a5bf2) + +build() { + cd ${pkgname}-${pkgver} + + CFLAGS+=' -ffat-lto-objects' \ + ${CONFIGURE} --docdir=/usr/share/doc/${pkgname}-${pkgver} + + make +} + +package() { + cd ${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install +}