Skip to content

Commit 957bda0

Browse files
committed
New package: xrizer-0.5
1 parent c746c2d commit 957bda0

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

srcpkgs/xrizer/files/version.txt

Whitespace-only changes.

srcpkgs/xrizer/template

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Template file for 'xrizer'
2+
pkgname=xrizer
3+
version=0.5
4+
revision=1
5+
archs="x86_64 i686"
6+
7+
# this variable must be consistent with its copy in the wivrn package
8+
# or users will have to manually input the path into wivrn
9+
_xrizer_path=/opt/xrizer
10+
build_style=cargo
11+
hostmakedepends="cmake git cargo rust clang shaderc"
12+
makedepends="libX11-devel libxcb-devel wayland-devel"
13+
depends="libX11 libxcb wayland"
14+
short_desc="XR-ize your OpenVR games"
15+
maintainer="rejah <rejahtavi@gmail.com>"
16+
license="GPL-3.0-or-later"
17+
homepage="https://github.com/Supreeeme/xrizer"
18+
changelog="https://github.com/Supreeeme/xrizer/releases"
19+
distfiles="https://github.com/Supreeeme/xrizer/archive/refs/tags/v${version}.tar.gz"
20+
checksum=8f1fdcc5b8608fd9669a393946815e4797abe1a70ab5d9dec47319c02bb767d3
21+
22+
# note: wivrn and openxr expect this specific per-architecture substructure for plugins
23+
# it will not work with the standard /usr/lib and /usr/lib32 locations
24+
do_install() {
25+
case "$XBPS_TARGET_MACHINE" in
26+
x86_64*)
27+
vmkdir ${_xrizer_path}/bin/linux64
28+
vinstall target/${RUST_TARGET}/release/libxrizer.so 755 ${_xrizer_path}/bin/linux64 vrclient.so
29+
;;
30+
i686*)
31+
vmkdir ${_xrizer_path}/bin
32+
vinstall target/${RUST_TARGET}/release/libxrizer.so 755 ${_xrizer_path}/bin vrclient.so
33+
;;
34+
esac
35+
vinstall ${FILESDIR}/version.txt 644 ${_xrizer_path}
36+
}

0 commit comments

Comments
 (0)