new package: botan

This commit is contained in:
Tee KOBAYASHI 2022-11-01 10:50:31 +09:00 committed by xtkoba
parent cd2e5561a9
commit 7c96aacfcd
1 changed files with 34 additions and 0 deletions

34
packages/botan/build.sh Normal file
View File

@ -0,0 +1,34 @@
TERMUX_PKG_HOMEPAGE=https://botan.randombit.net/
TERMUX_PKG_DESCRIPTION="Crypto and TLS for Modern C++"
TERMUX_PKG_LICENSE="BSD 2-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.19.2
TERMUX_PKG_SRCURL=https://botan.randombit.net/releases/Botan-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=3af5f17615c6b5cd8b832d269fb6cb4d54ec64f9eb09ddbf1add5093941b4d75
TERMUX_PKG_DEPENDS="libbz2, libc++, liblzma, libsqlite, zlib"
TERMUX_PKG_BUILD_DEPENDS="boost, boost-headers"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--cpu=$TERMUX_ARCH
--os=linux
--no-install-python-module
--without-documentation
--with-boost
--with-bzip2
--with-lzma
--with-sqlite3
--with-zlib
--prefix=$TERMUX_PREFIX
"
termux_step_pre_configure() {
CXXFLAGS+=" $CPPFLAGS"
}
termux_step_configure() {
python3 $TERMUX_PKG_SRCDIR/configure.py \
$TERMUX_PKG_EXTRA_CONFIGURE_ARGS
}
termux_step_post_configure() {
sed -i '/^LIB_LINKS_TO\s*=/s/\s-lrt//' Makefile
}