33 lines
896 B
Bash
33 lines
896 B
Bash
# 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 <future_linux@163.com>
|
|
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
|
|
}
|