new package: libtommath
This commit is contained in:
parent
76d510c564
commit
bad9546471
|
@ -0,0 +1,31 @@
|
|||
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
|
||||
}
|
Loading…
Reference in New Issue