Skip to content

Commit 4bae3fd

Browse files
committed
New package: xrizer-0.5
1 parent 85409ac commit 4bae3fd

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

srcpkgs/xrizer/files/version.txt

Whitespace-only changes.

srcpkgs/xrizer/template

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

0 commit comments

Comments
 (0)