blob: 38fd5feafd9ce1a706d0f2d070116913a4794e77 (
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
55
56
57
58
59
|
# vim:ts=2:sw=2:expandtab
# Maintainer: peelz <peelz.dev+arch@gmail.com>
pkgname="opencomposite-git"
pkgver="r1074.356d039"
pkgrel="1"
pkgdesc="Reimplementation of OpenVR, translating calls to OpenXR."
arch=("x86_64")
url="https://gitlab.com/znixian/OpenOVR"
license=("GPL3")
depends=(
"vulkan-icd-loader"
"glm"
)
makedepends=(
"git"
"cmake"
"make"
"vulkan-headers"
)
provides=("opencomposite")
conflicts=("opencomposite")
source=(
"${pkgname}::git+${url}#branch=openxr"
"git+https://github.com/KhronosGroup/OpenXR-SDK"
"git+https://github.com/g-truc/glm"
)
sha1sums=(
"SKIP"
"SKIP"
"SKIP"
)
pkgver() {
cd "${srcdir}/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
prepare() {
cd "${srcdir}/${pkgname}"
git submodule init
git config submodule.libs/openxr-sdk.url "${srcdir}/OpenXR-SDK"
git config submodule.libs/glm.url "${srcdir}/glm"
git -c protocol.file.allow=always submodule update
}
build() {
cd "${srcdir}/${pkgname}"
mkdir build
cd build
cmake ..
cmake --build .
}
package() {
install -Dm755 \
"${srcdir}/${pkgname}/build/bin/linux64/vrclient.so" \
"${pkgdir}/usr/share/opencomposite/bin/linux64/vrclient.so"
}
|