# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
pkgname=gpodder
pkgver=3.11.4
pkgrel=2
pkgdesc="Podcast aggregator"
url="https://gpodder.org"
arch="noarch !s390x !riscv64" # blocked by adwaita-icon-theme
license="GPL-3.0-or-later"
depends="
	adwaita-icon-theme
	py3-cairo
	py3-dbus
	py3-gobject3
	py3-html5lib
	py3-mygpoclient
	py3-podcastparser
	py3-requests
	python3
	xdg-utils
"
makedepends="py3-setuptools intltool help2man"
checkdepends="py3-pytest py3-pytest-httpserver py3-pytest-cov py3-minimock desktop-file-utils"
subpackages="$pkgname-doc $pkgname-lang $pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/gpodder/gpodder/archive/refs/tags/$pkgver.tar.gz
	0001-Replace-the-removed-imp-module-with-importlib.patch"

check() {
	make unittest
}

package() {
	make install PREFIX=/usr DESTDIR=$pkgdir

	touch no-update-check
	install -Dm644 no-update-check -t "$pkgdir"/usr/share/gpodder
}

sha512sums="
f60e2e04abec7d9713d169f9eccb431325bcfe40303e14d0cb42c3b5b4696d7435b86eb1c69b430ef99f81a6b71f89dffafec84d1f1c51118af59e57dcfa0d2d  gpodder-3.11.4.tar.gz
ae5383aaed6e67f582d9dff2e2aaba3735022578bc6b7de525fec7cc456d67ad01197ed41a4f5046d3774d5bc3b884ab65f066c7f3a78fd7e023106176f32870  0001-Replace-the-removed-imp-module-with-importlib.patch
"
