summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Bermond2021-02-16 02:02:32 +0000
committerDaniel Bermond2021-02-16 02:02:32 +0000
commit1b1d393eccd2319b1ca020f96206cc8c0e53c10b (patch)
tree340354a9f99de5b171b6aaf1a7fdcd6baba6c90c
downloadaur-1b1d393eccd2319b1ca020f96206cc8c0e53c10b.tar.gz
Initial commit
-rw-r--r--.SRCINFO66
-rw-r--r--PKGBUILD46
-rw-r--r--monado.install4
3 files changed, 116 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3c3fbc864c3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,66 @@
+pkgbase = monado
+ pkgdesc = An open source OpenXR runtime
+ pkgver = 21.0.0
+ pkgrel = 1
+ url = https://monado.dev/
+ arch = x86_64
+ license = Boost
+ makedepends = git
+ makedepends = meson
+ makedepends = doxygen
+ makedepends = eigen
+ makedepends = glslang
+ makedepends = qt5-base
+ makedepends = v4l-utils
+ makedepends = vulkan-headers
+ makedepends = dbus
+ makedepends = glib2
+ makedepends = gstreamer
+ makedepends = gst-plugins-base-libs
+ makedepends = hidapi
+ makedepends = libgl
+ makedepends = libjpeg-turbo
+ makedepends = librealsense
+ makedepends = libsurvive
+ makedepends = libusb
+ makedepends = libuvc
+ makedepends = libx11
+ makedepends = libxcb
+ makedepends = opencv
+ makedepends = openhmd
+ makedepends = sdl2
+ makedepends = systemd-libs
+ makedepends = vulkan-icd-loader
+ makedepends = wayland
+ makedepends = zlib
+ source = git+https://gitlab.freedesktop.org/monado/monado.git#tag=v21.0.0
+ sha256sums = SKIP
+
+pkgname = monado
+ install = monado.install
+ depends = dbus
+ depends = glib2
+ depends = gstreamer
+ depends = gst-plugins-base-libs
+ depends = hidapi
+ depends = libgl
+ depends = libjpeg-turbo
+ depends = librealsense
+ depends = libsurvive
+ depends = libusb
+ depends = libuvc
+ depends = libx11
+ depends = libxcb
+ depends = opencv
+ depends = openhmd
+ depends = sdl2
+ depends = systemd-libs
+ depends = vulkan-icd-loader
+ depends = wayland
+ depends = zlib
+ provides = openxr-runtime
+
+pkgname = monado-doc
+ pkgdesc = An open source OpenXR runtime (documentation)
+ arch = any
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3638cf27368
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Daniel Bermond <dbermond@archlinux.org>
+
+pkgbase=monado
+pkgname=('monado' 'monado-doc')
+pkgver=21.0.0
+pkgrel=1
+pkgdesc='An open source OpenXR runtime'
+arch=('x86_64')
+url='https://monado.dev/'
+license=('Boost')
+makedepends=('git' 'meson' 'doxygen' 'eigen' 'glslang' 'qt5-base' 'v4l-utils'
+ 'vulkan-headers'
+ 'dbus' 'glib2' 'gstreamer' 'gst-plugins-base-libs' 'hidapi' 'libgl'
+ 'libjpeg-turbo' 'librealsense' 'libsurvive' 'libusb' 'libuvc' 'libx11'
+ 'libxcb' 'opencv' 'openhmd' 'sdl2' 'systemd-libs' 'vulkan-icd-loader'
+ 'wayland' 'zlib')
+source=("git+https://gitlab.freedesktop.org/monado/monado.git#tag=v${pkgver}")
+sha256sums=('SKIP')
+
+build() {
+ arch-meson -Dinstall-active-runtime='false' build monado
+ ninja -C build
+}
+
+check() {
+ ninja -C build test
+}
+
+package_monado() {
+ depends=('dbus' 'glib2' 'gstreamer' 'gst-plugins-base-libs' 'hidapi' 'libgl'
+ 'libjpeg-turbo' 'librealsense' 'libsurvive' 'libusb' 'libuvc' 'libx11'
+ 'libxcb' 'opencv' 'openhmd' 'sdl2' 'systemd-libs' 'vulkan-icd-loader'
+ 'wayland' 'zlib')
+ install=monado.install
+ provides=('openxr-runtime')
+
+ DESTDIR="$pkgdir" ninja install -C build
+}
+
+package_monado-doc() {
+ pkgdesc+=' (documentation)'
+ arch=('any')
+
+ install -d -m755 "${pkgdir}/usr/share/doc/monado"
+ cp -dr --no-preserve='ownership' build/doc/html "${pkgdir}/usr/share/doc/monado"
+}
diff --git a/monado.install b/monado.install
new file mode 100644
index 00000000000..8f4c562c5cb
--- /dev/null
+++ b/monado.install
@@ -0,0 +1,4 @@
+post_install() {
+ printf '%s\n' 'To make Monado the default OpenXR runtime, create a symlink to'
+ printf '%s\n' '/usr/share/openxr/1/openxr_monado.json at /etc/xdg/openxr/1/active_runtime.json'
+}