pkgname: bc pkgver: '1.08.2' pkgrel: '1' pkgdesc: The Bc package contains an arbitrary precision numeric processing language. url: 'https://www.gnu.org/software/bc/' arch: x86_64 license: - GPL-2.0-only depends: [] makedepends: - texinfo source: - 'https://ftp.gnu.org/gnu/bc/bc-${pkgver}.tar.gz' sha256sums: - ae470fec429775653e042015edc928d07c8c3b2fc59765172a330d3d87785f86 build: | cd ${pkgname}-${pkgver} cat > bc/fix-libmath_h << "EOF" #! /bin/bash sed -e '1 s/^/{"/' \ -e 's/$/",/' \ -e '2,$ s/^/"/' \ -e '$ d' \ -i libmath.h sed -e '$ s/$/0}/' \ -i libmath.h EOF if [ -L /tools ]; then ln -sv /tools/lib/libncursesw.so.6 /usr/lib/libncursesw.so.6 ln -sfv libncurses.so.6 /usr/lib/libncurses.so fi sed -i -e '/flex/s/as_fn_error/: ;; # &/' configure ./configure --prefix=/usr \ --with-readline \ --mandir=/usr/share/man \ --infodir=/usr/share/info make make DESTDIR=${PKGDIR} install package: | true