From 7b6ca2abbaa16d587ac56e3472ca9c32a3db980a Mon Sep 17 00:00:00 2001 From: oreo639 <31916379+Oreo639@users.noreply.github.com> Date: Thu, 7 Jul 2022 18:29:01 -0700 Subject: [PATCH] gnome-tour: fix cross building --- srcpkgs/gnome-tour/template | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/srcpkgs/gnome-tour/template b/srcpkgs/gnome-tour/template index adb289c3e0d..0fcd74daf2b 100644 --- a/srcpkgs/gnome-tour/template +++ b/srcpkgs/gnome-tour/template @@ -4,8 +4,9 @@ version=42.0 revision=1 build_style=meson build_helper=rust -hostmakedepends="pkg-config cargo rust glib-devel gettext desktop-file-utils" -makedepends="gtk4-devel libadwaita-devel libglib-devel" +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 " license="GPL-3.0-or-later" @@ -13,3 +14,9 @@ homepage="https://gitlab.gnome.org/GNOME/gnome-tour/" changelog="https://gitlab.gnome.org/GNOME/gnome-tour/-/raw/master/NEWS" distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz" checksum=fcf1ac689057da86596970ec3da8355521c0a72e95063eb059d5fee4dea82f4f + +post_patch() { + [ -z "$CROSS_BUILD" ] && return 0 + vsed -i src/meson.build \ + -e "s%rust_target /%'${RUST_TARGET}' / rust_target /%" +}