blob: 64d579a4790980c69be23b383ab8d27f759dbb15 (
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
54
|
# Maintainer: Christoph Haag <christoph.haag@collabora.com>
pkgname="monado-git"
_dirname="monado"
pkgver=21.0.0.r69.g1b692c63
pkgrel=1
pkgdesc='The open source OpenXR runtime.'
arch=('i686' 'x86_64')
url='https://monado.dev'
depends=('openxr' 'openhmd' 'vulkan-icd-loader' 'libgl' 'wayland')
makedepends=('eigen' 'ninja' 'shaderc' 'meson' 'git')
optdepends=('libuvc: optical tracking support'
'opencv: optical tracking support'
'xr-hardware: udev permissions for popular XR hardware')
provides=("openxr-runtime")
#'doxygen' #When building docs
makedepend=('cmake' 'eigen' 'git')
license=('boost')
source=("$_dirname::git+https://gitlab.freedesktop.org/monado/monado.git")
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"
meson --prefix=/usr/ --libdir=lib -Dbuildtype=debugoptimized "$srcdir"/"$_dirname"-build
# mkdir -p "$_dirname"-build
# cd "$_dirname"-build
# cmake \
# -G Ninja \
# -DCMAKE_INSTALL_LIBDIR=lib \
# -DCMAKE_INSTALL_PREFIX=/usr \
# -DCMAKE_BUILD_TYPE=Release \
# ../"$_dirname"
ninja -C "$srcdir"/"$_dirname"-build
}
package() {
cd "$_dirname"-build
DESTDIR="$pkgdir" ninja install
}
|