void-packages/srcpkgs/newsboat/template

43 lines
1.1 KiB
Bash
Raw Normal View History

# Template file for 'newsboat'
pkgname=newsboat
2018-03-26 01:48:01 +00:00
version=r2.11
revision=1
build_style=configure
configure_script="./config.sh"
make_install_args="prefix=/usr"
2018-03-26 01:48:01 +00:00
hostmakedepends="asciidoc pkg-config"
checkdepends="ncurses-base"
2018-03-26 01:48:01 +00:00
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"
2018-03-26 01:48:01 +00:00
checksum=e9565613822a8d029d50f22ba42100fc9f58458f662dd85670281f7a6703ec2a
make_build_target="all doc"
2018-02-28 11:16:25 +00:00
CXXFLAGS=" -Wno-error=sign-compare"
2017-12-28 23:07:26 +00: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
}
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}"
}