# Template file for 'gnome-recipes' pkgname=gnome-recipes version=1.2.0 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 " 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="ef9f12de50b6a4cbb9da5fe9300128b9cb4b57b490ba432ce0acefa70150c353 02c9ec9192a0f732390292a21f4d123b7595957301608288125ae79451cf4b40" 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 }