# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
pkgname=gpodder
pkgver=3.11.5
pkgrel=0
pkgdesc="Podcast aggregator"
url="https://gpodder.org"
arch="noarch"
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="
	help2man
	intltool
	py3-build
	py3-installer
	py3-setuptools
"
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"

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="
5364ff4e819dac30e5153859a4a81ca97a62ec4137b924b6a9367c820452a96cf90dd4fadead94dcf8d36bddf1f832aa4f2c1e325aca7bdcafe68808ae201a83  gpodder-3.11.5.tar.gz
"
