# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: team/gnome <fossdd@pwned.life>
pkgname=msgraph
pkgver=0.2.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 --no-rebuild --print-errorlogs -C output
}

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

sha512sums="
23a9c24dde6125a7e6fc8a9db61248423a78e2e50a95880a59662d5824fc3f171b2354ab6ae66c77c75fd1737b1d4b19b7a35f8c6fe9ba393c5b116f3c56128f  msgraph-0.2.3.tar.xz
"
