termux-packages/packages/libtd/build.sh

21 lines
736 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://core.telegram.org/tdlib/
TERMUX_PKG_DESCRIPTION="Library for building Telegram clients"
TERMUX_PKG_LICENSE="BSL-1.0"
2021-12-23 14:34:06 +01:00
TERMUX_PKG_MAINTAINER="@termux"
2022-03-19 14:40:37 +01:00
TERMUX_PKG_VERSION=1.8.0
TERMUX_PKG_SRCURL=https://github.com/tdlib/td/archive/v${TERMUX_PKG_VERSION}.tar.gz
2022-03-19 14:40:37 +01:00
TERMUX_PKG_SHA256=30d560205fe82fb811cd57a8fcbc7ac853a5b6195e9cb9e6ff142f5e2d8be217
TERMUX_PKG_DEPENDS="readline, openssl (>= 1.1.1), zlib"
TERMUX_PKG_HOSTBUILD=true
termux_step_host_build() {
termux_setup_cmake
cmake "-DCMAKE_BUILD_TYPE=Release" "$TERMUX_PKG_SRCDIR"
cmake --build . --target prepare_cross_compiling
}
termux_step_post_make_install() {
# Fix rebuilds without ./clean.sh.
rm -rf $TERMUX_PKG_HOSTBUILD_DIR
}