# Template file for 'gnome-calendar'
pkgname=gnome-calendar
version=50.0
revision=1
build_style=meson
hostmakedepends="gettext glib-devel pkg-config gtk4-update-icon-cache
 $(vopt_if gir 'gobject-introspection') blueprint-compiler"
makedepends="evolution-data-server-devel geoclue2-devel
 gsettings-desktop-schemas-devel gtk4-devel libadwaita-devel
 libgweather-devel libical-devel libsoup3-devel"
short_desc="Calendar application designed to perfectly fit the GNOME desktop"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://apps.gnome.org/Calendar"
changelog="https://gitlab.gnome.org/GNOME/gnome-calendar/-/raw/gnome-50/NEWS"
#changelog="https://gitlab.gnome.org/GNOME/gnome-calendar/-/raw/main/NEWS"
distfiles="${GNOME_SITE}/gnome-calendar/${version%.*}/gnome-calendar-${version}.tar.xz"
checksum=4b75df071a52d98fb35e647d018030129d24d9007790d02457746c98617aeab0

build_options="gir"
build_options_default="gir"

pre_build() {
	if [ "$CROSS_BUILD" ]; then
		export GI_TYPELIB_PATH="${XBPS_CROSS_BASE}/usr/lib/girepository-1.0"
	fi
}
