# Template file for 'gnome-2048'
pkgname=gnome-2048
version=50.2
revision=1
build_style=meson
build_helper="rust"
hostmakedepends="cargo desktop-file-utils gettext itstool pkg-config vala meson gtk-update-icon-cache"
makedepends="libadwaita-devel rust-std"
short_desc="2048 clone for GNOME"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://gitlab.gnome.org/GNOME/gnome-2048"
distfiles="https://gitlab.gnome.org/GNOME/gnome-2048/-/archive/${version}/gnome-2048-${version}.tar.gz"
checksum=ed3ca14525355e06718e7b6e1313e1bb5ae90e4d1cbef142ea9d364a3b04be28

post_patch() {
	if [ "$CROSS_BUILD" ]; then
		vsed -i src/meson.build \
			-e "s%rust_target /%'${RUST_TARGET}' / rust_target /%"
	fi
}
