termux-packages/packages/z3/build.sh
Termux Github Actions 72ec46d78e z3: update to 4.8.16
This commit has been automatically submitted by Github Actions.
2022-04-24 12:23:34 +00:00

24 lines
925 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/Z3Prover/z3
TERMUX_PKG_DESCRIPTION="Z3 is a theorem prover from Microsoft Research."
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="4.8.16"
TERMUX_PKG_SRCURL=https://github.com/Z3Prover/z3/archive/z3-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=75f95e09f3f35fef746e571d5ec88a4efba27f1bc8f1a0ef1117167486ec3dc6
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+\.\d+\.\d+"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_configure() {
_PYTHON_VERSION=$(source $TERMUX_SCRIPTDIR/packages/python/build.sh; echo $_MAJOR_VERSION)
chmod +x scripts/mk_make.py
CXX="$CXX" CC="$CC" python${_PYTHON_VERSION} scripts/mk_make.py --prefix=$TERMUX_PREFIX --build=$TERMUX_PKG_BUILDDIR
if $TERMUX_ON_DEVICE_BUILD; then
sed 's%../../../../../../../../%%g' -i Makefile
else
sed 's%../../../../../%%g' -i Makefile
fi
sed 's/\-lpthread//g' -i config.mk
}