void-packages/srcpkgs/newsboat/template
2019-02-10 21:56:42 -02:00

36 lines
1.1 KiB
Bash

# Template file for 'newsboat'
pkgname=newsboat
version=2.14.1
revision=1
wrksrc="newsboat-r${version}"
build_style=configure
build_helper="rust"
configure_script="./config.sh"
make_build_target="all doc"
make_install_args="prefix=/usr"
hostmakedepends="asciidoc pkg-config cargo"
makedepends="json-c-devel libcurl-devel libxml2-devel sqlite-devel stfl-devel
rust-std"
checkdepends="ncurses-base"
short_desc="Newsboat is a fork of Newsbeuter the Mutt of RSS feed readers"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="MIT"
homepage="https://www.newsboat.org"
changelog="https://raw.githubusercontent.com/newsboat/newsboat/master/CHANGELOG.md"
distfiles="https://github.com/newsboat/newsboat/archive/r${version}.tar.gz"
checksum=fb029e2da250f0fdefdd8d52b417b2c13f1b049675ca3718190e9d43defd6c69
CXXFLAGS=" -Wno-error=sign-compare"
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}"
}