# Contributor: Erwan Rouchet <lucidiot@brainshit.fr>
# Maintainer: Erwan Rouchet <lucidiot@brainshit.fr>
pkgname=liferea
pkgver=1.15.7
pkgrel=0
pkgdesc="Desktop news aggregator for online news feeds and weblogs"
arch="all"
url="https://lzone.de/liferea"
license="GPL-2.0-or-later"
depends="py3-gobject3 libpeas-python3"
makedepends="
	glib-dev
	intltool
	gobject-introspection-dev
	libxml2-dev
	libxslt-dev
	sqlite-dev
	gtk+3.0-dev
	pango-dev
	webkit2gtk-4.1-dev
	json-glib-dev
	gsettings-desktop-schemas-dev
	libpeas-dev
	libsoup3-dev
	"
source="https://github.com/lwindolf/liferea/releases/download/v$pkgver/liferea-$pkgver.tar.bz2"
subpackages="$pkgname-doc $pkgname-lang"

prepare() {
	default_prepare
	update_config_sub
}
	
build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-schemas-compile
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

doc() {
	default_doc
	mkdir -p "$subpkgdir/usr/share/liferea"
	mv "$pkgdir/usr/share/liferea/doc" "$subpkgdir/usr/share/liferea/"
}

sha512sums="
282c056f53631b395c650f9d86077d3477a367f1306ebced00088b186534685ed2d93877d921d70fe97b369cf40c076499cdeae6d55b5bd9487527156c317cc0  liferea-1.15.7.tar.bz2
"
