diff options
author | Daniel Bermond | 2021-02-16 02:02:32 +0000 |
---|---|---|
committer | Daniel Bermond | 2021-02-16 02:02:32 +0000 |
commit | 1b1d393eccd2319b1ca020f96206cc8c0e53c10b (patch) | |
tree | 340354a9f99de5b171b6aaf1a7fdcd6baba6c90c /PKGBUILD | |
download | aur-1b1d393eccd2319b1ca020f96206cc8c0e53c10b.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3638cf273686 --- /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" +} |