blob: bfa247ddd2d7d36c160d99091fe7775ef0250981 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Christoph Haag <christoph.haag@collabora.com>
pkgname="monado-git"
_dirname="monado"
pkgver=24.0.0.r375.g4e22c990f
pkgrel=1
pkgdesc='The open source OpenXR runtime.'
arch=('i686' 'x86_64')
url='https://monado.dev'
depends=('openxr' 'vulkan-icd-loader' 'libgl' 'wayland' 'xr-hardware' 'libcap' 'libbsd' 'libdrm' 'openvr')
conflicts=('monado')
#'doxygen' #When building docs
makedepends=('eigen' 'ninja' 'shaderc' 'cmake' 'git' 'vulkan-headers')
optdepends=('libuvc: optical tracking support (must be present at build time)'
'opencv: optical tracking support (must be present at build time)'
'onnxruntime: optical hand tracking support (must be present at build time)'
'librealsense: intel realsense camera support (must be present at build time)'
'libsurvive-git: lighthouse positional tracking support (must be present at build time)'
'openhmd: additional hardware support (Oculus Rift, Nolo) (must be present at build time)'
'basalt-monado-git: experimental SLAM tracking through basalt'
'percetto: tracing support for performance debugging (must be present at build time)')
provides=("openxr-runtime" "monado=${pkgver}")
install=monado.install
license=('BSL-1.0')
source=("$_dirname::git+https://gitlab.freedesktop.org/monado/monado.git#branch=main")
md5sums=('SKIP')
#options=('debug' '!strip')
pkgver() {
cd "$_dirname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
prepare() {
cd "$_dirname"
}
build() {
cd "$_dirname"
cmake \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_PREFIX=/usr/ \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-GNinja -B"$srcdir"/"$_dirname"-build
ninja -C "$srcdir"/"$_dirname"-build
}
package() {
cd "$_dirname"-build
DESTDIR="$pkgdir" ninja install
}
|