* add msgraph

This commit is contained in:
Alexander Baldeck 2024-04-10 14:14:02 +02:00
parent afb0ce9cc8
commit 66f97bcc3a
2 changed files with 96 additions and 0 deletions

28
msgraph/.SRCINFO Normal file
View File

@ -0,0 +1,28 @@
pkgbase = msgraph
pkgdesc = A shared library for accessing MS Graph API
pkgver = 0.2.1
pkgrel = 1
url = https://gitlab.gnome.org/jbrummer/msgraph
arch = x86_64
license = LGPL-3.0-or-later
makedepends = gi-docgen
makedepends = git
makedepends = gobject-introspection
makedepends = meson
depends = gcc-libs
depends = glib2
depends = glibc
depends = gobject-introspection-runtime
depends = json-glib
depends = libgoa
depends = librest
depends = libsoup3
depends = uhttpmock
source = git+https://gitlab.gnome.org/jbrummer/msgraph.git#commit=9f3e53a7f38fa178e4c78caf271f9b93b3cf4c9b
b2sums = SKIP
pkgname = msgraph
pkgname = msgraph-docs
pkgdesc = A shared library for accessing MS Graph API (documentation)
depends =

68
msgraph/PKGBUILD Normal file
View File

@ -0,0 +1,68 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Fabian Bornschein <fabiscafe@archlinux.org>
pkgbase=msgraph
pkgname=(
msgraph
msgraph-docs
)
pkgver=0.2.1
pkgrel=1
pkgdesc="A shared library for accessing MS Graph API"
url="https://gitlab.gnome.org/jbrummer/msgraph"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
license=(LGPL-3.0-or-later)
depends=(
gcc-libs
glib2
glibc
gobject-introspection-runtime
json-glib
libgoa
librest
libsoup3
uhttpmock
)
makedepends=(
gi-docgen
git
gobject-introspection
meson
)
_commit=9f3e53a7f38fa178e4c78caf271f9b93b3cf4c9b # tags/0.2.1^0
source=("git+https://gitlab.gnome.org/jbrummer/msgraph.git#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd msgraph
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd msgraph
}
build() {
arch-meson msgraph build
meson compile -C build
}
check() {
meson test -vC build --print-errorlogs
}
package_msgraph() {
meson install -C build --destdir "$pkgdir"
mkdir -p doc/usr/share
mv {"$pkgdir",doc}/usr/share/doc
}
package_msgraph-docs() {
pkgdesc+=" (documentation)"
depends=()
mv doc/* "$pkgdir"
}
# vim:set sw=2 sts=-1 et: