From e605d0b499ae09e3613a53bf9c504a8b4ead6a4e Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Fri, 8 May 2020 00:27:25 +0300 Subject: [PATCH] new package: i2pd Requested in https://github.com/termux/termux-packages/issues/5013. --- packages/i2pd/build.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 packages/i2pd/build.sh diff --git a/packages/i2pd/build.sh b/packages/i2pd/build.sh new file mode 100644 index 000000000..447738528 --- /dev/null +++ b/packages/i2pd/build.sh @@ -0,0 +1,14 @@ +TERMUX_PKG_HOMEPAGE=https://i2pd.website/ +TERMUX_PKG_DESCRIPTION="A full-featured C++ implementation of the I2P router" +TERMUX_PKG_LICENSE="BSD 3-Clause" +TERMUX_PKG_VERSION=2.31.0 +TERMUX_PKG_SRCURL=https://github.com/PurpleI2P/i2pd/archive/$TERMUX_PKG_VERSION.tar.gz +TERMUX_PKG_SHA256=7e37abcf49e9f59ef6939069f4d74fc6bf29b09deec111bd3561021fc1349528 +TERMUX_PKG_DEPENDS="boost, miniupnpc, openssl, zlib" +TERMUX_PKG_FORCE_CMAKE=true +TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DWITH_UPNP:BOOL=ON" + +termux_step_pre_configure() { + TERMUX_PKG_SRCDIR+="/build" + CXXFLAGS="${CXXFLAGS/-Oz/-O2}" +}