# Maintainer: loathingkernel # Contributor: E-Hern Lee # Contributor: anon@sansorgan.es # Contributor: heavysink pkgname=proton _srctag=6.3-8c _commit= pkgver=${_srctag//-/.} pkgver=6.3.8 _geckover=2.47.2 _monover=6.4.1 _asyncver=1.9.2 pkgrel=4 epoch=1 pkgdesc="Compatibility tool for Steam Play based on Wine and additional components" url="https://github.com/ValveSoftware/Proton" arch=(x86_64 x86_64_v3) options=(!staticlibs !lto emptydirs) license=('custom') depends=( attr lib32-attr fontconfig lib32-fontconfig lcms2 lib32-lcms2 libxml2 lib32-libxml2 libxcursor lib32-libxcursor libxrandr lib32-libxrandr libxdamage lib32-libxdamage libxi lib32-libxi gettext lib32-gettext freetype2 lib32-freetype2 glu lib32-glu libsm lib32-libsm gcc-libs lib32-gcc-libs libpcap lib32-libpcap 'sdl2>=2.0.16' 'lib32-sdl2>=2.0.16' desktop-file-utils python steam-native-runtime ) makedepends=(autoconf ncurses bison perl fontforge flex mingw-w64-gcc git wget rsync mingw-w64-tools lld nasm meson cmake python-virtualenv python-pip glslang vulkan-headers giflib lib32-giflib libpng lib32-libpng gnutls lib32-gnutls libxinerama lib32-libxinerama libxcomposite lib32-libxcomposite libxmu lib32-libxmu libxxf86vm lib32-libxxf86vm libldap lib32-libldap mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils alsa-lib lib32-alsa-lib libxcomposite lib32-libxcomposite mesa lib32-mesa mesa-libgl lib32-mesa-libgl opencl-icd-loader lib32-opencl-icd-loader libxslt lib32-libxslt libpulse lib32-libpulse libva lib32-libva gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs vulkan-icd-loader lib32-vulkan-icd-loader 'sdl2>=2.0.16' 'lib32-sdl2>=2.0.16' libcups lib32-libcups rust lib32-rust-libs sane libgphoto2 gsm ffmpeg samba opencl-headers ) optdepends=( giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils libpulse lib32-libpulse alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo libxcomposite lib32-libxcomposite libxinerama lib32-libxinerama ncurses lib32-ncurses opencl-icd-loader lib32-opencl-icd-loader libxslt lib32-libxslt libva lib32-libva gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs vulkan-icd-loader lib32-vulkan-icd-loader sane libgphoto2 gsm ffmpeg cups samba dosbox ) makedepends=(${makedepends[@]} ${depends[@]}) provides=('proton-native') conflicts=('proton-native') #install=${pkgname}.install source=( proton::git+https://github.com/ValveSoftware/Proton.git#tag=proton-${_srctag} wine-valve::git+https://github.com/ValveSoftware/wine.git dxvk-valve::git+https://github.com/ValveSoftware/dxvk.git openvr::git+https://github.com/ValveSoftware/openvr.git liberation-fonts::git+https://github.com/liberationfonts/liberation-fonts.git FAudio::git+https://github.com/FNA-XNA/FAudio.git gstreamer::git+https://gitlab.freedesktop.org/gstreamer/gstreamer.git gst-plugins-base::git+https://gitlab.freedesktop.org/gstreamer/gst-plugins-base.git gst-plugins-good::git+https://gitlab.freedesktop.org/gstreamer/gst-plugins-good.git gst-orc::git+https://gitlab.freedesktop.org/gstreamer/orc.git vkd3d-proton::git+https://github.com/HansKristian-Work/vkd3d-proton.git OpenXR-SDK::git+https://github.com/KhronosGroup/OpenXR-SDK.git dxvk-nvapi::git+https://github.com/jp7677/dxvk-nvapi.git dxil-spirv::git+https://github.com/HansKristian-Work/dxil-spirv.git SPIRV-Headers::git+https://github.com/KhronosGroup/SPIRV-Headers.git Vulkan-Headers::git+https://github.com/KhronosGroup/Vulkan-Headers.git vkd3d-zfigura::git+https://repo.or.cz/vkd3d/zf.git https://dl.winehq.org/wine/wine-gecko/${_geckover}/wine-gecko-${_geckover}-x86{,_64}.tar.xz https://github.com/madewokherd/wine-mono/releases/download/wine-mono-${_monover}/wine-mono-${_monover}-x86.tar.xz dxvk-async-${_asyncver}.patch::https://raw.githubusercontent.com/Sporif/dxvk-async/${_asyncver}/dxvk-async.patch wine-winevulkan_fsr.patch wine-more_8x5_res.patch proton-sanitize_makefile.patch proton-disable_lock.patch proton-user_compat_data.patch proton-proton_native_transition.patch ) noextract=( wine-gecko-${_geckover}-{x86,x86_64}.tar.xz wine-mono-${_monover}-x86.tar.xz ) _make_wrappers () { local _i686=(i686 "-m32" "-melf_i386") local _x86_64=(x86_64 "" "") local _opts=(_i686 _x86_64) declare -n _opt for _opt in "${_opts[@]}"; do for l in ar as ranlib nm; do ln -s /usr/bin/$l wrappers/${_opt[0]}-pc-linux-gnu-$l done for t in gcc g++; do install -Dm755 /dev/stdin wrappers/${_opt[0]}-pc-linux-gnu-$t < /dev/null) /usr/bin/$t ${_opt[1]} "\$@" EOF done install -Dm755 /dev/stdin wrappers/${_opt[0]}-pc-linux-gnu-ld <