Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:regataos
regataos-wine
regataos-wine.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File regataos-wine.spec of Package regataos-wine
%define dxvk_version 2.4 %define dxvk_nvapi_version 0.7.1 %define vkd3d_proton_version 2.13 Name: regataos-wine Version: 24.7 Release: 0 Summary: Compatibility mode for Regata OS Store License: MIT Url: https://www.regataos.com/ Source1: dxvk-%{dxvk_version}.tar.gz Source2: vkd3d-proton-%{vkd3d_proton_version}.tar.zst Source3: dxvk-nvapi-v%{dxvk_nvapi_version}.tar.gz Source5: setup_dxvk.sh Source6: setup_vkd3d-proton.sh Group: System/GUI/KDE BuildRequires: xz BuildRequires: desktop-file-utils BuildRequires: update-desktop-files BuildRequires: hicolor-icon-theme BuildRequires: -post-build-checks Requires: libldap-data Requires: icoutils Requires: netcat-openbsd Requires: ncat Requires: ico Requires: cabextract Requires: fuseiso Requires: libcapi20-3 Requires: libSDL_net-1_2-0 Requires: libSDL_net-1_2-0-32bit Requires: libSDL_sound-1_0-1 Requires: libSDL_ttf-2_0-0 Requires: libSDL_ttf-2_0-0-32bit Requires: libSDL_image-1_2-0-32bit Requires: libSDL_gfx15-32bit Requires: openal-soft-data Requires: giflib-progs Requires: libportaudio2-32bit Requires: libsigc-2_0-0-32bit Requires: libxml++-2_6-2 Requires: libxml++-3_0-1 Requires: pulseaudio-utils-32bit Requires: libpulse0-32bit Requires: mpg123-jack-32bit Requires: mpg123-openal-32bit Requires: mpg123-pulse-32bit Requires: mpg123-sdl-32bit Requires: mpg123-portaudio-32bit Requires: libglibmm-2_4-1-32bit Requires: libxml++-3_0-1-32bit Requires: libxml++-2_6-2-32bit Requires: libmikmod3 Requires: gettext-runtime Requires: gettext-runtime-32bit Requires: fluid-soundfont-gm Requires: libexif12-32bit Requires: libgd3-32bit Requires: libgphoto2-6-32bit Requires: liblockdev1-32bit Requires: libltdl7-32bit Requires: libnl3-200-32bit Requires: libopusfile0 Requires: libpcap1-32bit Requires: libXpm4-32bit Requires: p11-kit-32bit Requires: mingw64-libz BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This package provides tools that brings support for the compatibility mode of the Regata OS Store. %build %install mkdir -p %{buildroot}/opt/regataos-wine/ cp -f %{SOURCE1} %{buildroot}/opt/regataos-wine/dxvk-%{dxvk_version}.tar.gz cp -f %{SOURCE2} %{buildroot}/opt/regataos-wine/vkd3d-proton-%{vkd3d_proton_version}.tar.zst cp -f %{SOURCE3} %{buildroot}/opt/regataos-wine/dxvk-nvapi-v%{dxvk_nvapi_version}.tar.gz mkdir -p %{buildroot}/opt/regataos-wine/dxvk/ cp -f %{SOURCE5} %{buildroot}/opt/regataos-wine/setup_dxvk.sh mkdir -p %{buildroot}/opt/regataos-wine/vkd3d-proton/ cp -f %{SOURCE6} %{buildroot}/opt/regataos-wine/setup_vkd3d-proton.sh %post # Update DXVK and VKD3D-Proton tar xvzf /opt/regataos-wine/dxvk-%{dxvk_version}.tar.gz -C /opt/regataos-wine/ rm -rf "/opt/regataos-wine/dxvk" mv -f /opt/regataos-wine/dxvk-%{dxvk_version} /opt/regataos-wine/dxvk cp -f "/opt/regataos-wine/setup_dxvk.sh" "/opt/regataos-wine/dxvk/setup_dxvk.sh" tar --use-compress-program=unzstd -xvf /opt/regataos-wine/vkd3d-proton-%{vkd3d_proton_version}.tar.zst -C /opt/regataos-wine/ rm -rf "/opt/regataos-wine/vkd3d-proton" mv -f /opt/regataos-wine/vkd3d-proton-%{vkd3d_proton_version} /opt/regataos-wine/vkd3d-proton cp -f "/opt/regataos-wine/setup_vkd3d-proton.sh" "/opt/regataos-wine/vkd3d-proton/setup_vkd3d-proton.sh" # Fix DXVK and VKD3D-Proton installation script if [[ $(grep -r "ln -sfv" /opt/regataos-wine/dxvk/setup_dxvk.sh) != *"ln -sfv"* ]]; then sed -i 's/ln -s -v/ln -sfv/' /opt/regataos-wine/dxvk/setup_dxvk.sh fi if [[ $(grep -r "ln -sfv" /opt/regataos-wine/vkd3d-proton/setup_vkd3d_proton.sh) != *"ln -sfv"* ]]; then sed -i 's/ln -s -v/ln -sfv/' /opt/regataos-wine/vkd3d-proton/setup_vkd3d_proton.sh fi # Update DXVK-NVAPI mkdir -p /opt/regataos-wine/dxvk-nvapi tar xvzf /opt/regataos-wine/dxvk-nvapi-v%{dxvk_nvapi_version}.tar.gz -C /opt/regataos-wine/dxvk-nvapi/ # Remove old Wine-GCS if test -e "/opt/regataos-wine/wine-gcs-version.txt"; then rm -f "/opt/regataos-wine/wine-gcs-version.txt" fi if test -e "/opt/regataos-wine/wine-gcs-22.7.4"; then rm -rf "/opt/regataos-wine/wine-gcs-22.7.4" fi if test -e "/usr/share/regataos/compatibility-mode/default-wineprefix.tar.xz"; then rm -f "/usr/share/regataos/compatibility-mode/default-wineprefix.tar.xz" fi update-desktop-database # Fix for Windows games with Steam Play sed -i '/DefaultLimitNOFILE/d' "/etc/systemd/system.conf" echo "DefaultLimitNOFILE=2147483642" >> "/etc/systemd/system.conf" sed -i '/DefaultLimitNOFILE/d' "/etc/systemd/user.conf" echo "DefaultLimitNOFILE=2147483642" >> "/etc/systemd/user.conf" echo "vm.max_map_count=2147483642" > /etc/sysctl.d/99-max_map_count.conf systemctl daemon-reexec sysctl --system # Download and install EasyAntiCheat Runtime and BattlEye Runtime link="https://regataos.github.io/game-access/runtimes-anticheats.tar.xz" installDir="/opt/regataos-wine" wget --no-check-certificate -O $installDir/runtimes-anticheats.tar.xz $link tar xf $installDir/runtimes-anticheats.tar.xz -C $installDir/ # Check DXVK and Proton-VKD3D installation scripts if test ! -e "/opt/regataos-wine/dxvk/setup_dxvk.sh"; then cp -f "/opt/regataos-wine/setup_dxvk.sh" "/opt/regataos-wine/dxvk/setup_dxvk.sh" fi if test ! -e "/opt/regataos-wine/vkd3d-proton/setup_vkd3d-proton.sh"; then cp -f "/opt/regataos-wine/setup_vkd3d-proton.sh" "/opt/regataos-wine/vkd3d-proton/setup_vkd3d-proton.sh" fi chmod +x /opt/regataos-wine/dxvk/setup_dxvk.sh chmod +x /opt/regataos-wine/vkd3d-proton/setup_vkd3d-proton.sh %files %defattr(-,root,root,-) /opt/regataos-wine /opt/regataos-wine/dxvk-%{dxvk_version}.tar.gz /opt/regataos-wine/vkd3d-proton-%{vkd3d_proton_version}.tar.zst /opt/regataos-wine/dxvk-nvapi-v%{dxvk_nvapi_version}.tar.gz /opt/regataos-wine/setup_dxvk.sh /opt/regataos-wine/setup_vkd3d-proton.sh %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor