maintainer="fossdd <fossdd@pwned.life>"
pkgname=showtime
pkgver=48.1
pkgrel=0
pkgdesc="Watch without distraction"
url="https://gitlab.gnome.org/GNOME/Incubator/showtime"
arch="noarch"
license="GPL-3.0-or-later"
depends="
	gst-plugins-rs-gtk4
	py3-cryptography
	py3-gettext
	py3-gobject3
	python3
	"
makedepends="
	blueprint-compiler
	desktop-file-utils
	gtk4.0-dev
	libadwaita-dev
	meson
	"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/showtime/${pkgver%.*}/showtime-$pkgver.tar.xz"

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

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

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

sha512sums="
48b1e80afbe3d2c7edad0960404fc32767e8e8dbde07199dceeb1b25e24e8d112a4a11badb26218be45b9159d3710b81e3c9985c3dfbf29500755ee92f4463b6  showtime-48.1.tar.xz
"
