# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: team/gnome <pabloyoyoista@postmarketos.org>
pkgname=gnome-tour
pkgver=47.0
pkgrel=0
pkgdesc="GNOME Tour & Greeter"
url="https://gitlab.gnome.org/GNOME/gnome-tour"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	cargo
	cargo-auditable
	desktop-file-utils
	glib-dev
	gtk4.0-dev
	libadwaita-dev
	meson
	"
checkdepends="
	appstream-glib
	desktop-file-utils
	"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-tour/${pkgver%.*}/gnome-tour-$pkgver.tar.xz
	cargo-auditable.patch
	"

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="
a0e23f37dbacbbcab05b3e2f59b9559f1055ad2cae29aa63debe5db84279305462721e1910740191e845fc693eeacaced5e1cb64c7aebbb0f058cb1b1e1921dc  gnome-tour-47.0.tar.xz
1178c2e998bbd558f9ea9c5d0a87a097bc855d1e1716375c3c231b024ab985ccd7467861f84603325f2063b55eac908c4fde8b4e1c226a52cf0eba4fbd18df67  cargo-auditable.patch
"
