# Maintainer: loathingkernel pkgname=proton-ge-custom _srctag=GE-Proton8-5 _commit=c10e04a5b7d858dce00d7cb55ad2eb8f404162f9 pkgver=${_srctag//-/.} _geckover=2.47.3 _monover=8.0.0 pkgrel=3 epoch=2 pkgdesc="Compatibility tool for Steam Play based on Wine and additional components, GloriousEggroll's custom build" url="https://github.com/GloriousEggroll/proton-ge-custom" arch=(x86_64 x86_64_v3) options=(!staticlibs !lto emptydirs) license=('custom') depends=( attr lib32-attr fontconfig lib32-fontconfig libxcursor lib32-libxcursor libxrandr lib32-libxrandr libxi lib32-libxi gettext lib32-gettext freetype2 lib32-freetype2 gcc-libs lib32-gcc-libs libpcap lib32-libpcap lzo lib32-lzo libxkbcommon lib32-libxkbcommon libvpx lib32-libvpx 'sdl2>=2.0.16' 'lib32-sdl2>=2.0.16' libsoup lib32-libsoup libgudev lib32-libgudev desktop-file-utils python steam-native-runtime cabextract blas lapack ) makedepends=(autoconf bison perl flex mingw-w64-gcc git wget rsync mingw-w64-tools lld nasm meson cmake fontforge afdko python-pefile glslang vulkan-headers clang giflib lib32-giflib gnutls lib32-gnutls libxinerama lib32-libxinerama libxcomposite lib32-libxcomposite libxxf86vm lib32-libxxf86vm 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 libpulse lib32-libpulse 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' rust lib32-rust-libs libgphoto2 opencl-headers ) optdepends=( giflib lib32-giflib gnutls lib32-gnutls v4l-utils lib32-v4l-utils libpulse lib32-libpulse alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libxcomposite lib32-libxcomposite libxinerama lib32-libxinerama opencl-icd-loader lib32-opencl-icd-loader gtk3 lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs vulkan-icd-loader lib32-vulkan-icd-loader libgphoto2 dosbox ) makedepends=(${makedepends[@]} ${depends[@]}) provides=('proton') install=${pkgname}.install source=( proton-ge-custom::git+https://github.com/gloriouseggroll/proton-ge-custom.git#commit=${_commit} wine-valve::git+https://github.com/ValveSoftware/wine.git dxvk::git+https://github.com/doitsujin/dxvk.git openvr::git+https://github.com/ValveSoftware/openvr.git liberation-fonts::git+https://github.com/liberationfonts/liberation-fonts.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 vkd3d-valve::git+https://github.com/ValveSoftware/vkd3d.git Vulkan-Headers::git+https://github.com/KhronosGroup/Vulkan-Headers.git SPIRV-Headers::git+https://github.com/KhronosGroup/SPIRV-Headers.git Vulkan-Loader::git+https://github.com/KhronosGroup/Vulkan-Loader.git glslang::git+https://github.com/KhronosGroup/glslang.git gst-libav::git+https://gitlab.freedesktop.org/gstreamer/gst-libav.git ffmpeg::git+https://git.ffmpeg.org/ffmpeg.git dav1d::git+https://code.videolan.org/videolan/dav1d.git gst-plugins-rs::git+https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git dxil-spirv::git+https://github.com/HansKristian-Work/dxil-spirv.git graphene::git+https://github.com/ebassi/graphene.git openfst::git+https://github.com/alphacep/openfst.git kaldi::git+https://github.com/alphacep/kaldi.git vosk-api::git+https://github.com/alphacep/vosk-api.git libdisplay-info-dxvk::git+https://gitlab.freedesktop.org/JoshuaAshton/libdisplay-info.git wine-staging::git+https://github.com/wine-staging/wine-staging.git protonfixes-gloriouseggroll::git+https://github.com/gloriouseggroll/protonfixes.git gst-plugins-bad::git+https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad.git gst-plugins-ugly::git+https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly.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 0001-AUR-Pkgbuild-changes.patch 0002-AUR-Do-not-update-cargo-crates.patch 0003-AUR-Remove-opensft-kaldi-and-vosk-from-build-because.patch ) # Optional patches source+=( fix_hwnd_changes_meaning.patch ) noextract=( wine-gecko-${_geckover}-{x86,x86_64}.tar.xz wine-mono-${_monover}-x86.tar.xz ) _make_wrappers () { # _arch prefix gcc ld as strip local _i686=( "i686" "-m32" "-melf_i386" "--32" "elf32-i386") local _x86_64=("x86_64" "-m64" "-melf_x86_64" "--64" "elf64-x86-64") local _opts=(_i686 _x86_64) declare -n _opt for _opt in "${_opts[@]}"; do for l in ar ranlib nm; do ln -s /usr/bin/gcc-$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 <