new: lfs-12.2-systemd/bison-3.8.2

This commit is contained in:
Yingjie Wang 2024-12-05 14:56:32 -05:00
parent e1ecbc03c2
commit 451c3e0739

View File

@ -0,0 +1,25 @@
pkgname=bison
pkgver=3.8.2
pkgdesc="The GNU general-purpose parser generator"
license=('GPL-3.0-or-later')
url="https://www.gnu.org/software/bison/bison.html"
sources=("${pkgname}-${pkgver}.tar.xz")
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
md5sums=("c28f119f405a2304ff0a7ccdcc629713")
src_prepare() {
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
}
src_build() {
./configure --prefix=/usr --docdir=/usr/share/doc/bison-3.8.2
make
}
src_check() {
make check
}
src_install() {
make DESTDIR="$pkgdir" install
}