# Template file for 'gnome-recipes'
pkgname=gnome-recipes
version=1.4.2
revision=1
_libgd_hash=97a852cdf3d37776f9c98f730d7dcbbe995bdeb7
hostmakedepends="glib intltool itstool pkg-config meson git"
makedepends="gtk+3-devel gnome-autoar-devel gspell-devel libcanberra-devel
 libsoup-devel"
short_desc="GNOME puzzle game where you locate mines in the ocean"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-2"
homepage="https://wiki.gnome.org/Apps/Recipes"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz
 https://github.com/GNOME/libgd/archive/$_libgd_hash.tar.gz"
checksum="960a705eb15c22ef0ffb7c2cb59fc153a25c2d0624c16a00dda544e5526fe5a5
 02c9ec9192a0f732390292a21f4d123b7595957301608288125ae79451cf4b40"
nocross=https://build.voidlinux.eu/builders/armv7l-musl_builder/builds/2155/steps/shell_3/logs/stdio

do_configure() {
	# meson_post_install.py updates icon cache, desktop database etc.
	# nothing that we need. It fails in this setup, so make it a nop
	ln -sf /bin/true meson_post_install.py
	rm -r subprojects/libgd
	ln -sr ../libgd-$_libgd_hash subprojects/libgd
	meson --prefix=/usr --buildtype=plain build
}

do_build() {
	ninja -C build
}

do_install() {
	DESTDIR="$DESTDIR" ninja -C build install
}
