# Template file for 'io.elementary.calendar'
pkgname=io.elementary.calendar
version=7.0.0
revision=1
build_style=meson
build_helper="gir"
hostmakedepends="gettext pkg-config vala desktop-file-utils AppStream
 glib-devel evolution-data-server-devel"
makedepends="granite-devel libglib-devel gtk+3-devel libgee08-devel
 libportal-devel libportal-gtk3-devel
 libchamplain-devel clutter-devel evolution-data-server-devel libhandy1-devel
 folks-devel geocode-glib-devel geoclue2-devel libical-devel libnotify-devel"
short_desc="Desktop calendar app designed for elementary OS"
maintainer="Cameron Nemo <cam@nohom.org>"
license="GPL-3.0-only"
homepage="https://github.com/elementary/calendar"
distfiles="https://github.com/elementary/calendar/archive/refs/tags/${version}.tar.gz"
checksum=389a46896b8cf883ef30cf60eab9edd397cfa38a2375164f833921b1ff72aefc

libio.elementary.calendar_package() {
	short_desc+=" - library"
	pkg_install() {
		vmove "usr/lib/*.so.*"
	}
}

libio.elementary.calendar-devel_package() {
	short_desc+=" - library development files"
	depends="libio.elementary.calendar>=${version} evolution-data-server-devel
	 granite-devel gtk+3-devel libglib-devel libical-devel libsoup3-devel
	 libhandy1-devel"
	pkg_install() {
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
		vmove usr/include
		vmove usr/share/vala
	}
}
