# Contributor: fossdd <fossdd@pwned.life>
maintainer="fossdd <fossdd@pwned.life>"
pkgname=showtime
pkgver=47.0
pkgrel=0
pkgdesc="Watch without distraction"
url="https://gitlab.gnome.org/GNOME/Incubator/showtime"
arch="noarch !s390x !loongarch64" # gst-plugins-rs
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://gitlab.gnome.org/GNOME/Incubator/showtime/-/archive/$pkgver/showtime-$pkgver.tar.gz"

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

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

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

sha512sums="
7768e1ec70a30484827cbfe9bbdb036fd97092a5bf9503b0734faefdff0e946af09eb1383a03b32f8895cd1953653def1e6290a2c7bb4425f984c67990be1767  showtime-47.0.tar.gz
"
