mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-09 20:33:24 +00:00
32 lines
965 B
Bash
32 lines
965 B
Bash
TERMUX_PKG_HOMEPAGE=https://www.libtom.net/LibTomMath/
|
|
TERMUX_PKG_DESCRIPTION="A free open source portable number theoretic multiple-precision integer library"
|
|
TERMUX_PKG_LICENSE="Unlicense"
|
|
TERMUX_PKG_LICENSE_FILE="LICENSE"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION=1.2.0
|
|
TERMUX_PKG_SRCURL=https://github.com/libtom/libtommath/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=f3c20ab5df600d8d89e054d096c116417197827d12732e678525667aa724e30f
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_EXTRA_MAKE_ARGS="
|
|
-f makefile.shared
|
|
PREFIX=$TERMUX_PREFIX
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
local libtooldir=$TERMUX_PKG_TMPDIR/_libtool
|
|
mkdir -p $libtooldir
|
|
pushd $libtooldir
|
|
cat > configure.ac <<-EOF
|
|
AC_INIT
|
|
LT_INIT
|
|
AC_OUTPUT
|
|
EOF
|
|
touch install-sh
|
|
cp "$TERMUX_SCRIPTDIR/scripts/config.sub" ./
|
|
cp "$TERMUX_SCRIPTDIR/scripts/config.guess" ./
|
|
autoreconf -fi
|
|
./configure --host=$TERMUX_HOST_PLATFORM
|
|
popd
|
|
export LIBTOOL=$libtooldir/libtool
|
|
}
|