aports/main/bison/APKBUILD
Natanael Copa bab7cad169 main/bison: skip tests with APORTS_BOOTSTRAP
So we can bootstrap aports without setting BOOTSTRAP which is for
toolchain bootstrap.
2024-10-14 13:38:03 +02:00

51 lines
1.2 KiB
Text

# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=bison
pkgver=3.8.2
pkgrel=1
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"
if [ -n "$BOOTSTRAP" ] || [ -n "$APORTS_BOOTSTRAP" ]; then
options="!check"
fi
source="https://ftp.gnu.org/gnu/bison/bison-$pkgver.tar.xz"
subpackages="$pkgname-doc"
# secfixes:
# 3.7.2-r0:
# - CVE-2020-24240
# - CVE-2020-24979
# - CVE-2020-24980
build() {
# work around temporary failure for armhf
CFLAGS="$CFLAGS -O2" \
CXXFLAGS="$CXXFLAGS -O2" \
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--datadir=/usr/share \
--infodir=/usr/share/info \
--mandir=/usr/share/man
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
rm -rf "$pkgdir"/usr/lib/charset.alias
rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true
}
sha512sums="
d4d23af6671406e97257892f90651b67f2ab95219831372be032190b7156c10a3435d457857e677445df8b2327aacccc15344acbbc3808a6f332a93cce23b444 bison-3.8.2.tar.xz
"