# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: team/gnome <fossdd@pwned.life>
pkgname=msgraph
pkgver=0.3.3
pkgrel=0
pkgdesc="Library to access MS Graph API for Office 365."
url="https://gitlab.gnome.org/GNOME/msgraph"
arch="all"
license="LGPL-3.0-or-later"
makedepends="
	gi-docgen
	glib-dev
	gnome-online-accounts-dev
	gobject-introspection-dev
	json-glib-dev
	libsoup3-dev
	meson
	uhttpmock-dev
	"
subpackages="$pkgname-doc $pkgname-dev"
source="https://download.gnome.org/sources/msgraph/${pkgver%.*}/msgraph-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
8dbb53d5e16c6473a8c631be00d3d1d9ddef2969235c45128fbc66151e6a8ab8c5dfb672e4b3f38754cf0b762dbee1a61ff901f6d135e3d670b5c9a9355f83e0  msgraph-0.3.3.tar.xz
"
