New package: newsboat-r2.10.1.

Thanks to @xYuusha for the documentation

Closes #8209.
This commit is contained in:
maxice8 2017-10-16 10:57:32 -02:00 committed by Enno Boland
parent 685a1daf79
commit a3d876f6c1
3 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,12 @@
--- test/configparser.cpp
+++ test/configparser.cpp
@@ -20,7 +20,7 @@ TEST_CASE("evaluate_backticks replaces command in backticks with its output",
== "hello world");
REQUIRE(configparser::evaluate_backticks("xxx`echo yyy`zzz")
== "xxxyyyzzz");
- REQUIRE(configparser::evaluate_backticks("`echo 3 \\* 4 | bc`") == "12");
+ REQUIRE(configparser::evaluate_backticks("`seq 10 | tail -1`") == "10");
}
SECTION("backticks can be escaped with backslash") {

36
srcpkgs/newsboat/template Normal file
View file

@ -0,0 +1,36 @@
# Template file for 'newsboat'
pkgname=newsboat
version=r2.10.1
revision=1
build_style=configure
configure_script="./config.sh"
make_install_args="prefix=/usr"
hostmakedepends="pkg-config perl asciidoc"
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"
checksum=82d5e3e2a6dab845aac0bf72580f46c2756375d49214905a627284e5bc32e327
if [ "$CROSS_BUILD" ]; then
# This is not triggered in native compilation
CXXFLAGS=" -Wno-error=sign-compare"
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}"
}

1
srcpkgs/newsboat/update Normal file
View file

@ -0,0 +1 @@
pattern='r[\d.]+\d+'