2017-01-08 10:32:05 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/bc/
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Arbitrary precision numeric processing language"
|
2019-01-20 22:39:59 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2017-05-16 21:57:57 +02:00
|
|
|
TERMUX_PKG_VERSION=1.07.1
|
2019-02-20 16:48:39 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
2017-06-19 23:35:59 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/bc/bc-${TERMUX_PKG_VERSION}.tar.gz
|
2017-05-16 21:57:57 +02:00
|
|
|
TERMUX_PKG_SHA256=62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_DEPENDS="readline,flex"
|
2017-05-16 21:57:57 +02:00
|
|
|
TERMUX_PKG_HOSTBUILD=true
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
2017-01-08 10:32:05 +01:00
|
|
|
--infodir=$TERMUX_PREFIX/share/info
|
2017-05-16 21:57:57 +02:00
|
|
|
--mandir=$TERMUX_PREFIX/share/man
|
|
|
|
--with-readline
|
2017-01-08 10:32:05 +01:00
|
|
|
"
|
2017-05-16 21:57:57 +02:00
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
cp $TERMUX_PKG_HOSTBUILD_DIR/bc/libmath.h \
|
|
|
|
$TERMUX_PKG_SRCDIR/bc/libmath.h
|
|
|
|
touch -d "next hour" $TERMUX_PKG_SRCDIR/bc/libmath.h
|
|
|
|
}
|