termux-packages/packages/newsboat/build.sh
Leonid Pliushch 550b99daa2 Revert "newsboat: update to 2.20"
error[E0432]: unresolved imports `libc::regcomp`, `libc::regerror`, `libc::regex_t`, `libc::regexec`, `libc::regfree`, `libc::regmatch_t`
2020-06-21 20:53:13 +03:00

28 lines
943 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.19
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://newsboat.org/releases/${TERMUX_PKG_VERSION}/newsboat-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=ba484c825bb903daf6d33d55126107b59e41111b455d368362208f1825403d1b
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
}