diff --git a/srcpkgs/wayvr/template b/srcpkgs/wayvr/template new file mode 100644 index 00000000000000..3926eed324e553 --- /dev/null +++ b/srcpkgs/wayvr/template @@ -0,0 +1,35 @@ +# Template file for 'wayvr' +pkgname=wayvr +version=26.2.1 +revision=1 +archs="x86_64" +build_style=cargo + +# Disable OpenVR support, no shlib for it and native steamvr is crashy anyways +configure_args="--no-default-features --features=openxr,osc,wayland,pipewire,xcb,x11" + +hostmakedepends="cmake cargo rust clang pkg-config" + +makedepends="base-devel libxkbcommon-devel openxr-devel pipewire-devel +openssl-devel fontconfig-devel dbus-devel wayland-devel alsa-lib-devel +shaderc libX11-devel libXext-devel libXrandr-devel libxcb-devel" + +depends="libxkbcommon openxr pipewire openssl fontconfig dbus wayland +alsa-lib libX11 libXext libXrandr libxcb" + +short_desc="Lightweight VR overlay (Compiled for OpenXR)" +maintainer="rejah " +license="GPL-3.0-or-later" +homepage="https://github.com/wlx-team/wayvr" +changelog="https://github.com/wlx-team/wayvr/releases" +distfiles="https://github.com/wlx-team/wayvr/archive/refs/tags/v${version}.tar.gz" +checksum=c81824f9a2855d01ac4c97165338cb24133febd17211b17aa302b8e8c7596c70 + +do_install() { + vbin target/${RUST_TARGET}/release/wayvr + vbin target/${RUST_TARGET}/release/wayvrctl + vbin target/${RUST_TARGET}/release/uidev + vinstall wayvr/wayvr.desktop 644 /usr/share/applications/ + vinstall wayvr/wayvr.png 644 /usr/share/icons/hicolor/128x128/ + vinstall wayvr/wayvr.svg 644 /usr/share/icons/hicolor/scalable/ +}