2017-10-16 14:57:32 +02:00
|
|
|
# Template file for 'newsboat'
|
|
|
|
pkgname=newsboat
|
2017-12-26 00:27:51 +01:00
|
|
|
version=r2.10.2
|
2017-10-16 14:57:32 +02:00
|
|
|
revision=1
|
|
|
|
build_style=configure
|
|
|
|
configure_script="./config.sh"
|
|
|
|
make_install_args="prefix=/usr"
|
2017-12-26 00:27:51 +01:00
|
|
|
hostmakedepends="pkg-config asciidoc"
|
2017-10-16 14:57:32 +02:00
|
|
|
checkdepends="ncurses-base"
|
|
|
|
makedepends="stfl-devel json-c-devel libxml2-devel libcurl-devel sqlite-devel libressl-devel"
|
|
|
|
make_build_target="all doc"
|
|
|
|
short_desc="Newsboat is a fork of Newsbeuter the Mutt of RSS feed readers"
|
|
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="http://www.newsboat.org"
|
|
|
|
distfiles="https://github.com/newsboat/newsboat/archive/${version}.tar.gz"
|
2017-12-26 00:27:51 +01:00
|
|
|
checksum=e548596d3a263369210890f46f146a6a398bd2b1973f94167e5614dee58ab7aa
|
2017-10-16 14:57:32 +02:00
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# This is not triggered in native compilation
|
|
|
|
CXXFLAGS=" -Wno-error=sign-compare"
|
|
|
|
fi
|
|
|
|
|
2017-12-29 00:07:26 +01:00
|
|
|
pre_configure() {
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
cd doc
|
|
|
|
g++ -o generate generate.cpp
|
|
|
|
g++ -o generate2 generate2.cpp
|
|
|
|
g++ -o gen-example-config gen-example-config.cpp
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2017-10-16 14:57:32 +02:00
|
|
|
do_check() {
|
|
|
|
rm -f test/rss.cpp
|
|
|
|
|
|
|
|
make test
|
|
|
|
(cd test && TERM=$TERM TMPDIR=/dev/shm ./test)
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
vsconf doc/example-bookmark-plugin.sh bookmark-plugin.sh
|
|
|
|
mv "${DESTDIR}/usr/share/doc/$pkgname/examples/config" "${DESTDIR}/usr/share/examples/${pkgname}"
|
|
|
|
|
|
|
|
}
|