0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-02-07 20:10:04 +00:00
Termux Github Actions f9c7a49290 bump(main/pari): 2.17.1
This commit has been automatically submitted by Github Actions.
2024-12-24 18:11:42 +00:00

30 lines
955 B
Bash

TERMUX_PKG_HOMEPAGE=https://pari.math.u-bordeaux.fr/
TERMUX_PKG_DESCRIPTION="A computer algebra system designed for fast computations in number theory"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="2.17.1"
TERMUX_PKG_SRCURL=https://pari.math.u-bordeaux.fr/pub/pari/unix/pari-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=67ba6f3071233725258541e4f174b5efbc64c65ae5115bade9edfc45f1fde5dc
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="gzip, libgmp, readline"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--with-gmp=$TERMUX_PREFIX
--with-readline=$TERMUX_PREFIX
"
termux_step_pre_configure() {
LD="$CC"
case $TERMUX_ARCH_BITS in
32) PARI_DOUBLE_FORMAT=1 ;;
64) PARI_DOUBLE_FORMAT=- ;;
esac
export PARI_DOUBLE_FORMAT
}
termux_step_configure() {
./Configure --prefix=$TERMUX_PREFIX --host=$TERMUX_HOST_PLATFORM \
$TERMUX_PKG_EXTRA_CONFIGURE_ARGS
TERMUX_PKG_EXTRA_MAKE_ARGS="-C $(echo O*)"
}