blob: 9026c4380183f031a19b6c272b696da380ebb768 (
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
60
61
62
|
# vim:ts=2:sw=2:expandtab
# Maintainer: peelz <peelz.dev+arch@gmail.com>
pkgname="opencomposite-git"
pkgver="r1185.d6b63a6"
pkgrel="2"
pkgdesc="Reimplementation of OpenVR, translating calls to OpenXR."
arch=("x86_64")
url="https://gitlab.com/znixian/OpenOVR"
license=("GPL-3.0-or-later")
depends=(
"vulkan-icd-loader"
)
makedepends=(
"git"
"cmake"
"make"
"vulkan-headers"
"libglvnd"
"python"
)
provides=("opencomposite")
conflicts=("opencomposite")
source=(
"${pkgname}::git+${url}.git#branch=openxr"
"git+https://github.com/KhronosGroup/OpenXR-SDK.git"
"git+https://github.com/g-truc/glm.git"
)
sha1sums=(
"SKIP"
"SKIP"
"SKIP"
)
options=("!lto")
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}"
cmake \
-B build \
-S . \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build
}
package() {
install -Dm755 \
"${srcdir}/${pkgname}/build/bin/linux64/vrclient.so" \
"${pkgdir}/opt/opencomposite/bin/linux64/vrclient.so"
}
|