# Contributor: Alex McGrath <amk@amk.ie>
# Maintainer: Alex McGrath <amk@amk.ie>
pkgname=newsflash
pkgver=3.3.5
pkgrel=0
pkgdesc="An rss feed reader that supports various web based services"
url="https://gitlab.com/news-flash/news_flash_gtk/"
# s390x: blueprint-compiler errors out in _resolve_dir_entry
arch="all !s390x"
license="GPL-3.0-only"
depends="desktop-file-utils"
makedepends="
	bash
	blueprint-compiler
	cargo
	clapper-dev
	gettext-dev
	gstreamer-dev
	libadwaita-dev
	meson
	openssl-dev>3
	sqlite-dev
	webkit2gtk-6.0-dev
	"
subpackages="$pkgname-lang"
source="https://gitlab.com/news-flash/news_flash_gtk/-/archive/v.$pkgver/news_flash_gtk-v.$pkgver.tar.gz"
options="net !check" # no tests
builddir="$srcdir/news_flash_gtk-v.$pkgver"

build() {
	abuild-meson . output
	meson compile -j 1 -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	ln -s io.gitlab.news_flash.NewsFlash "$pkgdir"/usr/bin/newsflash
}

sha512sums="
c5e12a76a5b814f4a43f436688018a444d1d2a09dc5d611bab738b4d04c29396267196eadeb35d1ec2fb0b179dce597e827a7e7a962168b8f7e61555d695f01a  news_flash_gtk-v.3.3.5.tar.gz
"
