# Contributor: Paper <paper@tilde.institute>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=confy
pkgver=0.7.1
pkgrel=0
pkgdesc="Conferences schedule viewer for GNOME"
url="https://confy.kirgroup.net/"
license="GPL-3.0-or-later"
# s390x: blueprint-compiler program has crashed
arch="noarch !s390x"
depends="
	gtk4.0
	py3-gobject3
	py3-icalendar
	libadwaita
	libnotify
	"
checkdepends="desktop-file-utils"
makedepends="
	blueprint-compiler
	gettext-dev
	glib-dev
	meson
	"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~fabrixxm/confy/archive/$pkgver.tar.gz"
subpackages="$pkgname-lang $pkgname-pyc"

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

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install -C output
}

sha512sums="
3dd9d889935188f7c15f94cb92f3cb8ac60f25be0e38cf334159a26c56845d3e318556c35bd1cd62a6bbe046e33a374fd2e28b989b32e02d088da39727de403a  confy-0.7.1.tar.gz
"
