XR packaging for Fedora Atomic
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

wlx-overlay-s (new formula)

Closes #2

Shiloh Fen 98118f38 88252595

+40
+40
Formula/wlx-overlay-s.rb
··· 1 + # Documentation: https://docs.brew.sh/Formula-Cookbook 2 + # https://rubydoc.brew.sh/Formula 3 + # PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! 4 + class WlxOverlayS < Formula 5 + desc "Access your Wayland desktop from Monado/WiVRn (compiled without OpenVR & X11 support)" 6 + homepage "https://github.com/galister/wlx-overlay-s" 7 + url "https://github.com/galister/wlx-overlay-s/archive/refs/tags/v25.4.2.tar.gz" 8 + sha256 "c2be093a815fa69fee65235bad573be8c1ac7959b5bad197f9e4201cc15da5ba" 9 + license "GPL-3.0-only" 10 + 11 + depends_on "shaderc" => :build 12 + depends_on "wayland" 13 + depends_on "alsa-lib" => :build 14 + depends_on "rust" => :build 15 + depends_on "gcc" => :build 16 + depends_on "fontconfig" 17 + depends_on "libpipewire" => :build 18 + depends_on "dbus" => :build 19 + depends_on "libxkbcommon" => :build 20 + depends_on "mesa" 21 + depends_on "openxr-generated" 22 + 23 + def install 24 + ENV["SHADERC_LIB_DIR"] = Formula["shaderc"].opt_lib.to_s 25 + 26 + # HACK: temporarily disable fixincludes for pthread.h, see https://github.com/orgs/Homebrew/discussions/6193 27 + # Maybe building with LLVM clang would be a better idea? 28 + system "nu", "-c", "try {ls /home/linuxbrew/.linuxbrew/Cellar/gcc/*/lib/gcc/current/gcc/x86_64-pc-linux-gnu/*/include-fixed/pthread.h | each {|file| mv $file.name $'($file.name).bak'}}" 29 + 30 + system "cargo", "install", "--no-default-features", "--features", "openxr,wayland,pipewire,osc,wayvr", *std_cargo_args 31 + 32 + # HACK: restore from above 33 + system "nu", "-c", "try {ls /home/linuxbrew/.linuxbrew/Cellar/gcc/*/lib/gcc/current/gcc/x86_64-pc-linux-gnu/*/include-fixed/pthread.h.bak | each {|file| mv $file.name ($file.name | str substring 0..-5)}}" 34 + end 35 + 36 + test do 37 + # TODO: improve test 38 + system "wlx-overlay-s", "--version" 39 + end 40 + end