void-packages/srcpkgs/msgraph/template

39 lines
1.2 KiB
Bash

# Template file for 'msgraph'
pkgname=msgraph
version=0.2.1
revision=1
build_style=meson
build_helper=gir
configure_args="$(vopt_bool gtk_doc gtk_doc)"
hostmakedepends="pkg-config $(vopt_if gtk_doc gi-docgen)"
makedepends="glib-devel gnome-online-accounts-devel json-glib-devel rest-devel
uhttpmock-devel"
short_desc="Library to access MS Graph API for Office 365"
maintainer="cinerea0 <cinerea0@protonmail.com>"
license="LGPL-3.0-or-later"
homepage="https://gitlab.gnome.org/GNOME/msgraph"
changelog="https://gitlab.gnome.org/GNOME/msgraph/-/raw/main/NEWS"
distfiles="${GNOME_SITE}/msgraph/${version%.*}/msgraph-${version}.tar.xz"
checksum=e0e59eaa8ae3e0a48ec0a6c2fed0470856a709248e9212b6a1d037de5792ecbb
build_options="gtk_doc"
if [ -z "${CROSS_BUILD}" ]; then
build_options_default="gtk_doc"
fi
msgraph-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision} glib-devel
gnome-online-accounts-devel json-glib-devel libsoup3-devel rest-devel"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
vmove usr/share/gir-1.0
if [ "${build_option_gtk_doc}" ]; then
vmove usr/share/doc
fi
}
}