48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
# Template file for 'newsboat'
|
|
pkgname=newsboat
|
|
version=r2.14
|
|
revision=1
|
|
build_style=configure
|
|
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/${version}.tar.gz"
|
|
checksum=57176071b0c777ddba237f95f684e36bf2ddf271e84ac5c9e3eec8f1afc0b133
|
|
|
|
CXXFLAGS=" -Wno-error=sign-compare"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
LDFLAGS="-L./target/${RUST_TARGET}/release"
|
|
fi
|
|
|
|
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}"
|
|
}
|