void-packages/srcpkgs/newsboat/template
maxice8 e3e66d0255 newsboat: update to r2.11.1.
Closes: #13080 [via git-merge-pr]
2018-04-11 16:10:39 +02:00

42 lines
1.1 KiB
Bash

# Template file for 'newsboat'
pkgname=newsboat
version=r2.11.1
revision=1
build_style=configure
configure_script="./config.sh"
make_install_args="prefix=/usr"
hostmakedepends="asciidoc pkg-config"
checkdepends="ncurses-base"
makedepends="json-c-devel libcurl-devel libxml2-devel sqlite-devel stfl-devel"
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"
checksum=0c48ec60e1abafd7b62cf8e376eff9e92dcb7bbc6e7dfed9b9ac141853d826d8
make_build_target="all doc"
CXXFLAGS=" -Wno-error=sign-compare"
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
}
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}"
}