30 lines
809 B
Bash
30 lines
809 B
Bash
# Template file for 'bc'
|
|
pkgname=bc
|
|
version=1.07.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--with-readline"
|
|
hostmakedepends="ed flex"
|
|
makedepends="readline-devel"
|
|
short_desc="An arbitrary precision numeric processing language"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.gnu.org/software/${pkgname}/"
|
|
license="GPL-3"
|
|
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a
|
|
disable_parallel_build=yes
|
|
nocross="https://build.voidlinux.eu/builders/armv7l_builder/builds/2093/steps/shell_3/logs/stdio"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" bc"
|
|
pre_build() {
|
|
(
|
|
cd bc
|
|
bc -c libmath.b </dev/null >libmath.h
|
|
./fix-libmath_h
|
|
)
|
|
}
|
|
fi
|
|
do_build() {
|
|
make ${makejobs} LEX="flex -I"
|
|
}
|