-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathtemplate
More file actions
37 lines (35 loc) · 1.32 KB
/
template
File metadata and controls
37 lines (35 loc) · 1.32 KB
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
# Template file for 'xrizer'
pkgname=xrizer
version=0.5
revision=1
archs="x86_64 i686"
lib32mode=full
# this variable must be consistent with its copy in the wivrn package
# or users will have to manually input the path into wivrn
_xrizer_path=/opt/xrizer
build_style=cargo
hostmakedepends="cmake git cargo rust clang shaderc"
makedepends="libX11-devel libxcb-devel wayland-devel"
depends="libX11 libxcb wayland"
short_desc="XR-ize your OpenVR games"
maintainer="rejah <rejahtavi@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/Supreeeme/xrizer"
changelog="https://github.com/Supreeeme/xrizer/releases"
distfiles="https://github.com/Supreeeme/xrizer/archive/refs/tags/v${version}.tar.gz"
checksum=8f1fdcc5b8608fd9669a393946815e4797abe1a70ab5d9dec47319c02bb767d3
# note: wivrn and openxr expect this specific per-architecture substructure for plugins
# it will not work with the standard /usr/lib and /usr/lib32 locations
do_install() {
case "$XBPS_TARGET_MACHINE" in
x86_64*)
vmkdir ${_xrizer_path}/bin/linux64
vinstall target/${RUST_TARGET}/release/libxrizer.so 755 ${_xrizer_path}/bin/linux64 vrclient.so
vinstall ${FILESDIR}/version.txt 644 ${_xrizer_path}/bin
;;
i686*)
vmkdir ${_xrizer_path}/bin
vinstall target/${RUST_TARGET}/release/libxrizer.so 755 ${_xrizer_path}/bin vrclient.so
;;
esac
}