# Template file for 'gnome-tour'
pkgname=gnome-tour
version=48.1
revision=1
build_style=meson
build_helper=rust
hostmakedepends="pkg-config cargo glib-devel gettext
 desktop-file-utils gtk-update-icon-cache"
makedepends="gtk4-devel libadwaita-devel libglib-devel rust-std"
short_desc="GNOME Tour & Greeter"
maintainer="oreo639 <oreo6391@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://gitlab.gnome.org/GNOME/gnome-tour/"
changelog="https://gitlab.gnome.org/GNOME/gnome-tour/-/raw/main/NEWS"
distfiles="${GNOME_SITE}/gnome-tour/${version%.*}/gnome-tour-${version}.tar.xz"
checksum=b8a03b2574eb956abe9af1414161ccb17f830d53600b9c0499cef3bb6f4127c5

post_patch() {
	[ -z "$CROSS_BUILD" ] && return 0
	vsed -i src/meson.build \
		 -e "s%rust_target /%'${RUST_TARGET}' / rust_target /%"
}
