c352216c63
Variables TERMUX_PKG_PLATFORM_INDEPENDENT TERMUX_DEBUG TERMUX_PKG_HAS_DEBUG TERMUX_PKG_ESSENTIAL TERMUX_SUBPKG_ESSENTIAL TERMUX_PKG_NO_STATICSPLIT TERMUX_PKG_BUILD_IN_SRC TERMUX_PKG_FORCE_CMAKE TERMUX_PKG_HOSTBUILD should not accept arbitrary values for marking them "enabled". Instead they should accept boolean values which makes them easier to handle and also makes their meaning clear. build-package.sh should make decision based on variable's value but not on whether it is set or empty. %ci:no-build
27 lines
923 B
Bash
27 lines
923 B
Bash
TERMUX_PKG_HOMEPAGE=https://newsboat.org/
|
|
TERMUX_PKG_DESCRIPTION="RSS/Atom feed reader for the text console"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_VERSION=2.16.1
|
|
TERMUX_PKG_SRCURL=https://newsboat.org/releases/${TERMUX_PKG_VERSION}/newsboat-${TERMUX_PKG_VERSION}.tar.xz
|
|
TERMUX_PKG_SHA256=4023c817b36fc08a3191283eec2c7161949c0727633f60ad837e11c599d3ad53
|
|
TERMUX_PKG_DEPENDS="libc++, libiconv, libandroid-support, libandroid-glob, json-c, libsqlite, libcurl, libxml2, stfl, ncurses, openssl"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_RM_AFTER_INSTALL="share/locale"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_lib_bsd_main=no"
|
|
TERMUX_PKG_CONFLICTS=newsbeuter
|
|
TERMUX_PKG_REPLACES=newsbeuter
|
|
|
|
termux_step_pre_configure() {
|
|
termux_setup_rust
|
|
|
|
export CXX_FOR_BUILD=g++
|
|
export CXXFLAGS_FOR_BUILD="-O2"
|
|
|
|
# Used by newsboat Makefile:
|
|
export CARGO_BUILD_TARGET=$CARGO_TARGET_NAME
|
|
|
|
LDFLAGS+=" -liconv"
|
|
|
|
export PKG_CONFIG_ALLOW_CROSS=1
|
|
}
|