From 47e4d934a910e91757d05424d2093d8c6b3fb67e Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Wed, 15 Aug 2018 13:55:00 +0300 Subject: [PATCH] new package: c-toxcore A dependency for 'toxic' --- packages/c-toxcore/build.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 packages/c-toxcore/build.sh diff --git a/packages/c-toxcore/build.sh b/packages/c-toxcore/build.sh new file mode 100644 index 000000000..52866cf7e --- /dev/null +++ b/packages/c-toxcore/build.sh @@ -0,0 +1,21 @@ +TERMUX_PKG_MAINTAINER="Leonid Plyushch @xeffyr" + +TERMUX_PKG_HOMEPAGE=https://tox.chat +TERMUX_PKG_DESCRIPTION="Backend library for the Tox protocol" +TERMUX_PKG_VERSION=0.2.5 +TERMUX_PKG_SRCURL=https://github.com/TokTok/toxcore/archive/v${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_SHA256=9ad8a3b3dac80e0a46087fd1f7895819f22494e6b687d68e4a779eeff21ad2d8 +TERMUX_PKG_DEPENDS="libsodium" +TERMUX_PKG_BUILD_IN_SRC=true + +termux_step_configure() { + termux_setup_cmake + + cmake \ + -DCMAKE_INSTALL_PREFIX="${TERMUX_PREFIX}" \ + -DCMAKE_INSTALL_LIBDIR="${TERMUX_PREFIX}/lib" \ + -DBOOTSTRAP_DAEMON=off \ + -DDHT_BOOTSTRAP=off \ + -DBUILD_TOXAV=off \ + -DBUILD_AV_TEST=off +}