This commit is contained in:
Nathan 2022-10-07 13:53:02 -05:00
parent e442a96e22
commit e428cb8860
4 changed files with 0 additions and 1159 deletions

View File

@ -1,280 +0,0 @@
pkgbase = proton-ge-custom
pkgdesc = Compatibility tool for Steam Play based on Wine and additional components, GloriousEggroll's custom build
pkgver = GE.Proton7.35
pkgrel = 1
epoch = 2
url = https://github.com/GloriousEggroll/proton-ge-custom
install = proton-ge-custom.install
arch = x86_64
arch = x86_64_v3
license = custom
makedepends = autoconf
makedepends = bison
makedepends = perl
makedepends = fontforge
makedepends = flex
makedepends = mingw-w64-gcc
makedepends = git
makedepends = wget
makedepends = rsync
makedepends = mingw-w64-tools
makedepends = lld
makedepends = nasm
makedepends = meson
makedepends = cmake
makedepends = afdko
makedepends = python-pefile
makedepends = glslang
makedepends = vulkan-headers
makedepends = clang
makedepends = giflib
makedepends = lib32-giflib
makedepends = libpng
makedepends = lib32-libpng
makedepends = gnutls
makedepends = lib32-gnutls
makedepends = libxinerama
makedepends = lib32-libxinerama
makedepends = libxcomposite
makedepends = lib32-libxcomposite
makedepends = libxmu
makedepends = lib32-libxmu
makedepends = libxxf86vm
makedepends = lib32-libxxf86vm
makedepends = libldap
makedepends = lib32-libldap
makedepends = mpg123
makedepends = lib32-mpg123
makedepends = openal
makedepends = lib32-openal
makedepends = v4l-utils
makedepends = lib32-v4l-utils
makedepends = alsa-lib
makedepends = lib32-alsa-lib
makedepends = libxcomposite
makedepends = lib32-libxcomposite
makedepends = mesa
makedepends = lib32-mesa
makedepends = mesa-libgl
makedepends = lib32-mesa-libgl
makedepends = opencl-icd-loader
makedepends = lib32-opencl-icd-loader
makedepends = libxslt
makedepends = lib32-libxslt
makedepends = libpulse
makedepends = lib32-libpulse
makedepends = libva
makedepends = lib32-libva
makedepends = gtk3
makedepends = lib32-gtk3
makedepends = gst-plugins-base-libs
makedepends = lib32-gst-plugins-base-libs
makedepends = vulkan-icd-loader
makedepends = lib32-vulkan-icd-loader
makedepends = sdl2>=2.0.16
makedepends = lib32-sdl2>=2.0.16
makedepends = rust
makedepends = lib32-rust-libs
makedepends = libgphoto2
makedepends = gsm
makedepends = opencl-headers
makedepends = attr
makedepends = lib32-attr
makedepends = fontconfig
makedepends = lib32-fontconfig
makedepends = lcms2
makedepends = lib32-lcms2
makedepends = libxml2
makedepends = lib32-libxml2
makedepends = libxcursor
makedepends = lib32-libxcursor
makedepends = libxrandr
makedepends = lib32-libxrandr
makedepends = libxdamage
makedepends = lib32-libxdamage
makedepends = libxi
makedepends = lib32-libxi
makedepends = gettext
makedepends = lib32-gettext
makedepends = freetype2
makedepends = lib32-freetype2
makedepends = glu
makedepends = lib32-glu
makedepends = libsm
makedepends = lib32-libsm
makedepends = gcc-libs
makedepends = lib32-gcc-libs
makedepends = libpcap
makedepends = lib32-libpcap
makedepends = lzo
makedepends = lib32-lzo
makedepends = libxkbcommon
makedepends = lib32-libxkbcommon
makedepends = libvpx
makedepends = lib32-libvpx
makedepends = sdl2>=2.0.16
makedepends = lib32-sdl2>=2.0.16
makedepends = libsoup3
makedepends = lib32-libsoup3
makedepends = libgudev
makedepends = lib32-libgudev
makedepends = desktop-file-utils
makedepends = python
makedepends = steam-native-runtime
makedepends = cabextract
depends = attr
depends = lib32-attr
depends = fontconfig
depends = lib32-fontconfig
depends = lcms2
depends = lib32-lcms2
depends = libxml2
depends = lib32-libxml2
depends = libxcursor
depends = lib32-libxcursor
depends = libxrandr
depends = lib32-libxrandr
depends = libxdamage
depends = lib32-libxdamage
depends = libxi
depends = lib32-libxi
depends = gettext
depends = lib32-gettext
depends = freetype2
depends = lib32-freetype2
depends = glu
depends = lib32-glu
depends = libsm
depends = lib32-libsm
depends = gcc-libs
depends = lib32-gcc-libs
depends = libpcap
depends = lib32-libpcap
depends = lzo
depends = lib32-lzo
depends = libxkbcommon
depends = lib32-libxkbcommon
depends = libvpx
depends = lib32-libvpx
depends = sdl2>=2.0.16
depends = lib32-sdl2>=2.0.16
depends = libsoup3
depends = lib32-libsoup3
depends = libgudev
depends = lib32-libgudev
depends = desktop-file-utils
depends = python
depends = steam-native-runtime
depends = cabextract
optdepends = giflib
optdepends = lib32-giflib
optdepends = libpng
optdepends = lib32-libpng
optdepends = libldap
optdepends = lib32-libldap
optdepends = gnutls
optdepends = lib32-gnutls
optdepends = mpg123
optdepends = lib32-mpg123
optdepends = openal
optdepends = lib32-openal
optdepends = v4l-utils
optdepends = lib32-v4l-utils
optdepends = libpulse
optdepends = lib32-libpulse
optdepends = alsa-plugins
optdepends = lib32-alsa-plugins
optdepends = alsa-lib
optdepends = lib32-alsa-lib
optdepends = libjpeg-turbo
optdepends = lib32-libjpeg-turbo
optdepends = libxcomposite
optdepends = lib32-libxcomposite
optdepends = libxinerama
optdepends = lib32-libxinerama
optdepends = opencl-icd-loader
optdepends = lib32-opencl-icd-loader
optdepends = libxslt
optdepends = lib32-libxslt
optdepends = libva
optdepends = lib32-libva
optdepends = gtk3
optdepends = lib32-gtk3
optdepends = gst-plugins-base-libs
optdepends = lib32-gst-plugins-base-libs
optdepends = vulkan-icd-loader
optdepends = lib32-vulkan-icd-loader
optdepends = libgphoto2
optdepends = gsm
optdepends = dosbox
provides = proton
noextract = wine-gecko-2.47.3-x86.tar.xz
noextract = wine-gecko-2.47.3-x86_64.tar.xz
noextract = wine-mono-7.3.1-x86.tar.xz
options = !staticlibs
options = !lto
options = emptydirs
source = proton-ge-custom::git+https://github.com/gloriouseggroll/proton-ge-custom.git#tag=GE-Proton7-35
source = wine-valve::git+https://github.com/ValveSoftware/wine.git
source = dxvk::git+https://github.com/doitsujin/dxvk.git
source = openvr::git+https://github.com/ValveSoftware/openvr.git
source = liberation-fonts::git+https://github.com/liberationfonts/liberation-fonts.git
source = gstreamer::git+https://gitlab.freedesktop.org/gstreamer/gstreamer.git
source = gst-plugins-base::git+https://gitlab.freedesktop.org/gstreamer/gst-plugins-base.git
source = gst-plugins-good::git+https://gitlab.freedesktop.org/gstreamer/gst-plugins-good.git
source = gst-orc::git+https://gitlab.freedesktop.org/gstreamer/orc.git
source = vkd3d-proton::git+https://github.com/HansKristian-Work/vkd3d-proton.git
source = OpenXR-SDK::git+https://github.com/KhronosGroup/OpenXR-SDK.git
source = dxvk-nvapi::git+https://github.com/jp7677/dxvk-nvapi.git
source = vkd3d-valve::git+https://github.com/ValveSoftware/vkd3d.git
source = Vulkan-Headers::git+https://github.com/KhronosGroup/Vulkan-Headers.git
source = SPIRV-Headers::git+https://github.com/KhronosGroup/SPIRV-Headers.git
source = Vulkan-Loader::git+https://github.com/KhronosGroup/Vulkan-Loader.git
source = glslang::git+https://github.com/KhronosGroup/glslang.git
source = gst-libav::git+https://gitlab.freedesktop.org/gstreamer/gst-libav.git
source = ffmpeg::git+https://git.ffmpeg.org/ffmpeg.git
source = dav1d::git+https://code.videolan.org/videolan/dav1d.git
source = gst-plugins-rs::git+https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
source = dxil-spirv::git+https://github.com/HansKristian-Work/dxil-spirv.git
source = graphene::git+https://github.com/ebassi/graphene.git
source = wine-staging::git+https://github.com/wine-staging/wine-staging.git
source = protonfixes-gloriouseggroll::git+https://github.com/gloriouseggroll/protonfixes.git
source = gst-plugins-bad::git+https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad.git
source = gst-plugins-ugly::git+https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly.git
source = https://dl.winehq.org/wine/wine-gecko/2.47.3/wine-gecko-2.47.3-x86.tar.xz
source = https://dl.winehq.org/wine/wine-gecko/2.47.3/wine-gecko-2.47.3-x86_64.tar.xz
source = https://github.com/madewokherd/wine-mono/releases/download/wine-mono-7.3.1/wine-mono-7.3.1-x86.tar.xz
source = 0001-AUR-pkgbuild-changes.patch
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = 08d318f3dd6440a8a777cf044ccab039b0d9c8809991d2180eb3c9f903135db3
sha256sums = 0beac419c20ee2e68a1227b6e3fa8d59fec0274ed5e82d0da38613184716ef75
sha256sums = 55ca808868599b1d8ad53b222b8cb26fd96fa818c511163e361238025c76e9fe
sha256sums = b2cc798fe8a7b8a482db058930d526d30237839eada28cc2262a86270731d2f7
pkgname = proton-ge-custom

View File

@ -1,478 +0,0 @@
From ae2534b0d7d4c81ec77c6f34770519fdde5ba365 Mon Sep 17 00:00:00 2001
From: Stelios Tsampas <loathingkernel@gmail.com>
Date: Mon, 27 Jun 2022 01:26:56 +0300
Subject: [PATCH] AUR pkgbuild changes
---
Makefile.in | 74 +++++++++++++++++++++++++++++-----
compatibilitytool.vdf.template | 2 +-
configure.sh | 2 +
make/rules-autoconf.mk | 4 +-
make/rules-cargo.mk | 4 +-
make/rules-cmake.mk | 4 +-
make/rules-common.mk | 18 +++++----
make/rules-configure.mk | 4 +-
make/rules-meson.mk | 3 +-
make/rules-winemaker.mk | 2 +-
proton | 6 +--
11 files changed, 91 insertions(+), 32 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 5ad5b576..be92bc8f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -63,7 +63,6 @@ ifeq ($(ENABLE_CCACHE),1)
export CCACHE_DIR := $(if $(CCACHE_DIR),$(CCACHE_DIR),$(HOME)/.ccache)
override DOCKER_OPTS := -v $(CCACHE_DIR):$(CCACHE_DIR)$(CONTAINER_MOUNT_OPTS) $(CCACHE_ENV) -e CCACHE_DIR=$(CCACHE_DIR) $(DOCKER_OPTS)
else
- export CCACHE_DISABLE := 1
override DOCKER_OPTS := $(CCACHE_ENV) -e CCACHE_DISABLE=1 $(DOCKER_OPTS)
endif
@@ -125,7 +124,7 @@ container-build:
all32 $(MAKECMDGOALS32): container-build
all64 $(MAKECMDGOALS64): container-build
else
-J = $(patsubst -j%,%,$(filter -j%,$(MAKEFLAGS)))
+J = $(patsubst -j%,%,$(SUBJOBS))
endif
@@ -175,13 +174,28 @@ else
endif
CROSSLDFLAGS += -Wl,--file-alignment,4096
-OPTIMIZE_FLAGS := -O2 -march=nocona -mtune=core-avx2 -mfpmath=sse
+CFLAGS ?= -O2 -march=nocona -mtune=core-avx2
+OPTIMIZE_FLAGS := $(CFLAGS) -mfpmath=sse
SANITY_FLAGS := -fwrapv -fno-strict-aliasing
DEBUG_FLAGS := -gdwarf-2 -gstrict-dwarf
COMMON_FLAGS = $(DEBUG_FLAGS) $(OPTIMIZE_FLAGS) $(SANITY_FLAGS) -ffile-prefix-map=$(CCACHE_BASEDIR)=.
-COMMON_FLAGS32 := -mstackrealign
+COMMON_FLAGS32 := -mstackrealign -mno-avx
CARGO_BUILD_ARG := --release
+ifneq ($(USE_LTO), 1)
+GST_LTO :=
+FFMPEG_LTO :=
+ifneq (,$(findstring -O3,$(CFLAGS)))
+FFMPEG_LTO_OPTS32 := --disable-inline-asm
+else
+FFMPEG_LTO_OPTS32 :=
+endif
+else
+GST_LTO := -Db_lto=true
+FFMPEG_LTO := --enable-lto
+FFMPEG_LTO_OPTS32 := --disable-inline-asm
+endif
+
##
## Target configs
##
@@ -370,8 +384,8 @@ ALL_TARGETS += dist
GOAL_TARGETS += dist
dist_prefix: wine gst_good gst_libav gst_plugins_rs
- find $(DST_LIBDIR32)/wine -type f -execdir chmod a-w '{}' '+'
- find $(DST_LIBDIR64)/wine -type f -execdir chmod a-w '{}' '+'
+ find $(DST_LIBDIR32)/wine -type f -execdir chmod go-w '{}' '+'
+ find $(DST_LIBDIR64)/wine -type f -execdir chmod go-w '{}' '+'
rm -rf $(abspath $(DIST_PREFIX))
python3 $(SRCDIR)/default_pfx.py $(abspath $(DIST_PREFIX)) $(abspath $(DST_DIR)) $(STEAM_RUNTIME_RUNSH)
@@ -441,6 +455,7 @@ $(eval $(call rules-meson,dav1d,64))
##
GST_ORC_MESON_ARGS := \
+ $(GST_LTO) \
-Dorc-test=disabled \
-Dexamples=disabled \
-Dtests=disabled \
@@ -457,10 +472,14 @@ $(eval $(call rules-meson,gst_orc,64))
##
GSTREAMER_MESON_ARGS := \
+ $(GST_LTO) \
+ -Ddoc=disabled \
-Dgst_parse=false \
-Dbenchmarks=disabled \
-Dtools=disabled \
-Dbash-completion=disabled \
+ -Dptp-helper-permissions=capabilities \
+ -Ddbghelp=disabled \
-Dexamples=disabled \
-Dtests=disabled \
-Dgtk_doc=disabled \
@@ -482,6 +501,11 @@ $(eval $(call rules-meson,gstreamer,64))
## graphene
##
+GRAPHENE_MESON_ARGS := \
+ -Dtests=false \
+ -Dintrospection=disabled \
+ -Dinstalled_tests=false
+
$(eval $(call rules-source,graphene,$(SRCDIR)/graphene))
$(eval $(call rules-meson,graphene,32))
$(eval $(call rules-meson,graphene,64))
@@ -492,6 +516,9 @@ $(eval $(call rules-meson,graphene,64))
##
GST_BASE_MESON_ARGS := \
+ $(GST_LTO) \
+ -Ddoc=disabled \
+ -Dtools=disabled \
-Dalsa=disabled \
-Daudiomixer=disabled \
-Daudiorate=disabled \
@@ -535,6 +562,8 @@ $(eval $(call rules-meson,gst_base,64))
##
GST_GOOD_MESON_ARGS := \
+ $(GST_LTO) \
+ -Ddoc=disabled \
-Daalib=disabled \
-Dalpha=disabled \
-Dapetag=disabled \
@@ -609,6 +638,7 @@ $(eval $(call rules-meson,gst_good,64))
FFMPEG_CONFIGURE_ARGS := \
--enable-shared \
+ $(FFMPEG_LTO) \
--disable-static \
--disable-everything \
--disable-programs \
@@ -632,6 +662,9 @@ FFMPEG_CONFIGURE_ARGS := \
--enable-decoder=aac \
--enable-demuxer=xwma
+FFMPEG_CONFIGURE_ARGS64 = --optflags="$(COMMON_FLAGS) $(COMMON_FLAGS64)"
+FFMPEG_CONFIGURE_ARGS32 = --optflags="$(COMMON_FLAGS) $(COMMON_FLAGS32)" $(FFMPEG_LTO_OPTS32)
+
$(eval $(call rules-source,ffmpeg,$(SRCDIR)/FFmpeg))
$(eval $(call rules-configure,ffmpeg,32))
$(eval $(call rules-configure,ffmpeg,64))
@@ -676,6 +709,8 @@ $(OBJ)/.gst_plugins_rs-post-build32:
##
GST_BAD_MESON_ARGS := \
+ $(GST_LTO) \
+ -Ddoc=disabled \
-Dfbdev=disabled \
-Ddecklink=disabled \
-Dcurl=disabled \
@@ -695,7 +730,9 @@ GST_BAD_MESON_ARGS := \
-Dvoamrwbenc=disabled \
-Dnvcodec=disabled \
-Dx265=disabled \
+ -Dopenexr=disabled \
-Dtests=disabled \
+ -Dintrospection=disabled \
-Dgobject-cast-checks=disabled \
-Dglib-asserts=disabled \
-Dglib-checks=disabled \
@@ -713,6 +750,7 @@ $(eval $(call rules-meson,gst_bad,64))
##
GST_UGLY_MESON_ARGS := \
+ $(GST_LTO) \
-Ddoc='disabled' \
-Dtests=disabled \
-Dgobject-cast-checks=disabled \
@@ -888,7 +926,11 @@ WINE_SOURCE_ARGS = \
--exclude include/config.h.in \
WINE_CONFIGURE_ARGS = \
+ --with-x \
+ --with-gstreamer \
--with-mingw \
+ --without-oss \
+ --disable-win16 \
--disable-tests
WINE_CONFIGURE_ARGS64 = --enable-win64
@@ -952,6 +994,9 @@ DXVK_MESON_ARGS32 = --bindir=$(DXVK_DST32)/lib/wine/dxvk
DXVK_MESON_ARGS64 = --bindir=$(DXVK_DST64)/lib64/wine/dxvk
DXVK_DEPENDS = glslang
+DXVK_CPPFLAGS= -msse -msse2
+DXVK_LDFLAGS= -static -static-libgcc -static-libstdc++
+
$(eval $(call rules-source,dxvk,$(SRCDIR)/dxvk))
$(eval $(call rules-meson,dxvk,32,CROSS))
$(eval $(call rules-meson,dxvk,64,CROSS))
@@ -974,6 +1019,9 @@ $(OBJ)/.dxvk-post-build32:
DXVK_NVAPI_MESON_ARGS32 = --bindir=$(DXVK_NVAPI_DST32)/lib/wine/nvapi
DXVK_NVAPI_MESON_ARGS64 = --bindir=$(DXVK_NVAPI_DST64)/lib64/wine/nvapi
+DXVK_NVAPI_CPPFLAGS= -msse -msse2
+DXVK_NVAPI_LDFLAGS= -static -static-libgcc -static-libstdc++
+
$(eval $(call rules-source,dxvk-nvapi,$(SRCDIR)/dxvk-nvapi))
$(eval $(call rules-meson,dxvk-nvapi,32,CROSS))
$(eval $(call rules-meson,dxvk-nvapi,64,CROSS))
@@ -1037,10 +1085,14 @@ VKD3D_PROTON_SOURCE_ARGS = \
--exclude vkd3d_build.h.in \
--exclude vkd3d_version.h.in \
+VKD3D_PROTON_MESON_ARGS = -Denable_d3d12=true
VKD3D_PROTON_MESON_ARGS32 = --bindir=$(VKD3D_PROTON_DST32)/lib/wine/vkd3d-proton
VKD3D_PROTON_MESON_ARGS64 = --bindir=$(VKD3D_PROTON_DST64)/lib64/wine/vkd3d-proton
VKD3D_PROTON_DEPENDS = glslang
+VKD3D_PROTON_CPPFLAGS= -msse -msse2
+VKD3D_PROTON_LDFLAGS= -static -static-libgcc -static-libstdc++
+
$(eval $(call rules-source,vkd3d-proton,$(SRCDIR)/vkd3d-proton))
$(eval $(call rules-meson,vkd3d-proton,32,CROSS))
$(eval $(call rules-meson,vkd3d-proton,64,CROSS))
@@ -1278,14 +1330,14 @@ $(FONTS_OBJ)/source-han/%.ttf: $$(%.ttf_CIDFONT) $$(%.ttf_FEATURES) $$(%.ttf_SEQ
mkdir -p $(FONTS_OBJ)/source-han
# Do not immediately create the target file, so that make is interrupted
# it will restart again
- afdko makeotfexe -f $($(notdir $@)_CIDFONT) -omitMacNames -ff $($(notdir $@)_FEATURES) \
+ makeotfexe -f $($(notdir $@)_CIDFONT) -omitMacNames -ff $($(notdir $@)_FEATURES) \
-lic ADOBE -mf $($(notdir $@)_MENUNAMEDB) -r -nS -cs 25 -ch $($(notdir $@)_UNISOURCE) \
-ci $($(notdir $@)_SEQUENCES) -o $@.tmp
- afdko tx -cff +S -no_futile $($(notdir $@)_CIDFONT) $@.cff
+ tx -cff +S -no_futile $($(notdir $@)_CIDFONT) $@.cff
# sftnedit uses a hardcoded temporary file in the local directory, so we have
# to run it in a dedicated temporary directory to prevent concurrent instances
# to step onto each other's feet
- (TEMP_DIR=`mktemp -d` && cd $$TEMP_DIR && afdko sfntedit -a CFF=$(abspath $($(notdir $@)).cff) $(abspath $@.tmp) && rm -fr $$TEMP_DIR)
+ (TEMP_DIR=`mktemp -d` && cd $$TEMP_DIR && sfntedit -a CFF=$(abspath $($(notdir $@)).cff) $(abspath $@.tmp) && rm -fr $$TEMP_DIR)
mv $@.tmp $@
$(FONTS_OBJ)/ume-gothic/%.ttf: $$(%.ttf_FONT) $$(%.ttf_NAMETABLE_PATCH)
@@ -1295,10 +1347,10 @@ $(FONTS_OBJ)/ume-gothic/%.ttf: $$(%.ttf_FONT) $$(%.ttf_NAMETABLE_PATCH)
ttx -o $@ -m $($(notdir $@)_FONT) $(FONTS_OBJ)/ume-gothic/$(notdir $(basename $($(notdir $@)_NAMETABLE_PATCH))).ttx
$(simsun.ttc): $(simsun.ttf) $(nsimsun.ttf)
- afdko otf2otc -o $@ $^
+ otf2otc -o $@ $^
$(msgothic.ttc): $(msgothic.ttf) $(mspgothic.ttf) $(msuigothic.ttf)
- afdko otf2otc -o $@ $^
+ otf2otc -o $@ $^
$(micross.ttf): $(noto_sans.ttf) $(noto_sans_arabic.ttf) $(noto_sans_armenian.ttf) $(noto_sans_bengali.ttf) $(noto_sans_coptic.ttf) \
$(noto_sans_georgian.ttf) $(noto_sans_gujarati.ttf) $(noto_sans_hebrew.ttf) $(noto_sans_khmer.ttf) $(noto_sans_tamil.ttf) \
diff --git a/compatibilitytool.vdf.template b/compatibilitytool.vdf.template
index 5ac60e8b..e580cd20 100644
--- a/compatibilitytool.vdf.template
+++ b/compatibilitytool.vdf.template
@@ -14,7 +14,7 @@
"install_path" "."
// For this template, we're going to substitute the display_name key in here, e.g.:
- "display_name" "##BUILD_NAME##"
+ "display_name" "##BUILD_NAME## (Unsupported AUR package [native])"
"from_oslist" "windows"
"to_oslist" "linux"
diff --git a/configure.sh b/configure.sh
index 68168bff..09cd2b7f 100755
--- a/configure.sh
+++ b/configure.sh
@@ -126,6 +126,7 @@ function configure() {
CONTAINER_MOUNT_OPTS=:Z
fi
+ if [ "$arg_container_engine" != "none" ]; then
if [[ -n "$arg_container_engine" ]]; then
check_container_engine "$arg_container_engine" || die "Specified container engine \"$arg_container_engine\" doesn't work"
else
@@ -138,6 +139,7 @@ function configure() {
die "${arg_container_engine:-Container engine discovery} has failed. Please fix your setup."
fi
fi
+ fi
stat "Using $arg_container_engine."
diff --git a/make/rules-autoconf.mk b/make/rules-autoconf.mk
index 0827caa9..4e6d19f2 100644
--- a/make/rules-autoconf.mk
+++ b/make/rules-autoconf.mk
@@ -31,9 +31,9 @@ $$(OBJ)/.$(1)-configure$(3): $$(OBJ)/.$(1)-pre-configure
$$(OBJ)/.$(1)-build$(3):
@echo ":: building $(3)bit $(1)..." >&2
cd "$$($(2)_OBJ$(3))" && env $$($(2)_ENV$(3)) \
- $$(MAKE)
+ $$(MAKE) -j$$(SUBJOBS)
cd "$$($(2)_OBJ$(3))" && env $$($(2)_ENV$(3)) \
- $$(MAKE) install
+ $$(MAKE) -j$$(SUBJOBS) install
touch $$@
endif
endef
diff --git a/make/rules-cargo.mk b/make/rules-cargo.mk
index b2af34ca..c132fffb 100644
--- a/make/rules-cargo.mk
+++ b/make/rules-cargo.mk
@@ -14,8 +14,10 @@ $$(OBJ)/.$(1)-configure$(3):
$$(OBJ)/.$(1)-build$(3):
@echo ":: building $(3)bit $(1)..." >&2
cd $$($(2)_SRC) && env $$($(2)_ENV$(3)) \
+ cargo update --offline --verbose
+ cd $$($(2)_SRC) && env $$($(2)_ENV$(3)) \
cargo build \
- $$(filter -j%,$$(MAKEFLAGS)) \
+ -j$$(SUBJOBS) --locked --offline --verbose \
--target "$$(CARGO_TARGET_$(3))" \
--target-dir $$($(2)_OBJ$(3)) \
$$(CARGO_BUILD_ARG) \
diff --git a/make/rules-cmake.mk b/make/rules-cmake.mk
index c70751a2..1096dc19 100644
--- a/make/rules-cmake.mk
+++ b/make/rules-cmake.mk
@@ -28,9 +28,9 @@ $$(OBJ)/.$(1)-configure$(3): $$($(2)_SRC)/CMakeLists.txt
$$(OBJ)/.$(1)-build$(3):
@echo ":: building $(3)bit $(1)..." >&2
cd "$$($(2)_OBJ$(3))" && env $$($(2)_ENV$(3)) \
- $$(MAKE)
+ $$(MAKE) -j$$(SUBJOBS)
cd "$$($(2)_OBJ$(3))" && env $$($(2)_ENV$(3)) \
- $$(MAKE) install
+ $$(MAKE) -j$$(SUBJOBS) install
touch $$@
endif
endef
diff --git a/make/rules-common.mk b/make/rules-common.mk
index 115c2b03..c6bf0ef6 100644
--- a/make/rules-common.mk
+++ b/make/rules-common.mk
@@ -113,7 +113,11 @@ $(2)_LIBFLAGS$(3) = $$(foreach d,$$($(2)_DEPS$(3)),-L$$($$(d)_LIBDIR$(3))) \
# native version doesn't exist.
$(2)_ENV$(3) = \
+ WINEDEBUG="-all" \
+ WINEPREFIX="$$(OBJ)/pfx-wine$(3)" \
+ WINEDLLOVERRIDES="winemenubuilder=d;" \
CARGO_TARGET_$$(call toupper,$$(CARGO_TARGET_$(3)))_LINKER="$$(TARGET_$(4)$(3))-gcc" \
+ CARGO_TARGET_$$(call toupper,$$(CARGO_TARGET_$(3)))_RUSTFLAGS="$$(RUSTFLAGS)" \
CCACHE_BASEDIR="$$(CCACHE_BASEDIR)" \
STRIP="$$(STRIP)" \
AR="$$(TARGET_$(4)$(3))-ar" \
@@ -127,7 +131,7 @@ $(2)_ENV$(3) = \
PATH="$$(call list-join,:,$$(foreach d,$$($(2)_DEPS$(3)),$$($$(d)_BINDIR$(3))),,:):$$$$PATH" \
LD_LIBRARY_PATH="$$(call list-join,:,$$(foreach d,$$($(2)_DEPS$(3)),$$($$(d)_LIBDIR$(3))),,:)$$$$LD_LIBRARY_PATH" \
PKG_CONFIG_PATH="$$(call list-join,:,$$(foreach d,$$($(2)_DEPS$(3)),$$($$(d)_LIBDIR$(3))/pkgconfig))" \
- PKG_CONFIG_LIBDIR="/usr/lib/$$(PKG_CONFIG_TARGET_$(4)$(3))/pkgconfig:/usr/share/pkgconfig" \
+ PKG_CONFIG_LIBDIR="/usr/lib$(3)/pkgconfig:/usr/share/pkgconfig" \
CFLAGS="$$($(2)_INCFLAGS$(3)) $$($(2)_CFLAGS) $$(COMMON_FLAGS) $$(COMMON_FLAGS$(3))" \
CPPFLAGS="$$($(2)_INCFLAGS$(3)) $$($(2)_CPPFLAGS) $$(COMMON_FLAGS) $$(COMMON_FLAGS$(3))" \
CXXFLAGS="$$($(2)_INCFLAGS$(3)) $$($(2)_CXXFLAGS) $$(COMMON_FLAGS) $$(COMMON_FLAGS$(3)) -std=c++17" \
@@ -151,7 +155,7 @@ $(2)_ENV$(3) += \
CROSSCPPFLAGS="$$($(2)_INCFLAGS$(3)) $$($(2)_CPPFLAGS) $$(COMMON_FLAGS) $$(COMMON_FLAGS$(3))" \
CROSSCXXFLAGS="$$($(2)_INCFLAGS$(3)) $$($(2)_CXXFLAGS) $$(COMMON_FLAGS) $$(COMMON_FLAGS$(3)) -std=c++17" \
CROSSLDFLAGS="$$($(2)_LIBFLAGS$(3)) $$($(2)_LDFLAGS$(3)) $$($(2)_LDFLAGS) $$(CROSSLDFLAGS)" \
- CROSSPKG_CONFIG_LIBDIR="/usr/lib/$$(PKG_CONFIG_TARGET_CROSS$(3))/pkgconfig:/usr/share/pkgconfig" \
+ CROSSPKG_CONFIG_LIBDIR="/usr/lib$(3)/pkgconfig:/usr/share/pkgconfig" \
endif
@@ -164,14 +168,14 @@ else
install-strip = objcopy --file-alignment=4096 --strip-debug $(1) $(2)/$(notdir $(1)) && rm -f $(2)/$(notdir $(1)).debug
endif
-TARGET_32 := i686-linux-gnu
-TARGET_64 := x86_64-linux-gnu
+TARGET_32 := i686-pc-linux-gnu
+TARGET_64 := x86_64-pc-linux-gnu
TARGET_CROSS32 := i686-w64-mingw32
TARGET_CROSS64 := x86_64-w64-mingw32
-PKG_CONFIG_TARGET_32 := i386-linux-gnu
-PKG_CONFIG_TARGET_64 := x86_64-linux-gnu
-PKG_CONFIG_TARGET_CROSS32 := i386-w64-mingw32
+PKG_CONFIG_TARGET_32 := i686-pc-linux-gnu
+PKG_CONFIG_TARGET_64 := x86_64-pc-linux-gnu
+PKG_CONFIG_TARGET_CROSS32 := i686-w64-mingw32
PKG_CONFIG_TARGET_CROSS64 := x86_64-w64-mingw32
LIBDIR_WINE_32 := wine/i386-unix
diff --git a/make/rules-configure.mk b/make/rules-configure.mk
index d04a3c53..18ac684e 100644
--- a/make/rules-configure.mk
+++ b/make/rules-configure.mk
@@ -26,9 +26,9 @@ $$(OBJ)/.$(1)-configure$(3):
$$(OBJ)/.$(1)-build$(3):
@echo ":: building $(3)bit $(1)..." >&2
cd "$$($(2)_OBJ$(3))" && env $$($(2)_ENV$(3)) \
- $$(MAKE)
+ $$(MAKE) -j$$(SUBJOBS)
cd "$$($(2)_OBJ$(3))" && env $$($(2)_ENV$(3)) \
- $$(MAKE) install
+ $$(MAKE) -j$$(SUBJOBS) install
touch $$@
endif
endef
diff --git a/make/rules-meson.mk b/make/rules-meson.mk
index d603bfde..3fd3d47f 100644
--- a/make/rules-meson.mk
+++ b/make/rules-meson.mk
@@ -47,6 +47,7 @@ $$(OBJ)/.$(1)-configure$(3): $$($(2)_SRC)/meson.build
env $$($(2)_ENV$(3)) \
meson "$$($(2)_OBJ$(3))" "$$($(2)_SRC)" \
+ --wrap-mode=nodownload \
--prefix="$$($(2)_DST$(3))" \
--libdir="lib$(subst 32,,$(3))" \
--buildtype=plain \
@@ -60,7 +61,7 @@ $$(OBJ)/.$(1)-configure$(3): $$($(2)_SRC)/meson.build
$$(OBJ)/.$(1)-build$(3):
@echo ":: building $(3)bit $(1)..." >&2
env $$($(2)_ENV$(3)) \
- ninja $$(filter -j%,$$(MAKEFLAGS)) -C "$$($(2)_OBJ$(3))" install $(-v?)
+ ninja -j$$(SUBJOBS) -C "$$($(2)_OBJ$(3))" install $(-v?)
touch $$@
endif
endef
diff --git a/make/rules-winemaker.mk b/make/rules-winemaker.mk
index 69688a03..1c0d1d3b 100644
--- a/make/rules-winemaker.mk
+++ b/make/rules-winemaker.mk
@@ -29,7 +29,7 @@ $$(OBJ)/.$(1)-build$(3):
@echo ":: building $(3)bit $(1)..." >&2
rsync -arx "$$($(2)_SRC)/" "$$($(2)_OBJ$(3))/"
env $$($(2)_ENV$(3)) \
- $$(MAKE) -C "$$($(2)_OBJ$(3))" LIBRARIES="$$($(2)_LDFLAGS)"
+ $$(MAKE) -j$$(SUBJOBS) -C "$$($(2)_OBJ$(3))" LIBRARIES="$$($(2)_LDFLAGS)"
cd "$$($(2)_OBJ$(3))" && touch "$(basename $(4)).spec" && env $$($(2)_ENV$(3)) \
winebuild --$(lastword $(subst ., ,$(4))) --fake-module -E "$(basename $(4)).spec" -o "$(4).fake"
mkdir -p $$($(2)_LIBDIR$(3))/$(LIBDIR_WINE_$(3))
diff --git a/proton b/proton
index dfeab12a..2a58d345 100755
--- a/proton
+++ b/proton
@@ -417,7 +417,6 @@ class Proton:
self.wine_bin = self.bin_dir + "wine"
self.wine64_bin = self.bin_dir + "wine64"
self.wineserver_bin = self.bin_dir + "wineserver"
- self.dist_lock = FileLock(self.path("dist.lock"), timeout=-1)
def path(self, d):
return self.base_dir + d
@@ -1693,8 +1692,6 @@ if __name__ == "__main__":
g_proton = Proton(os.path.dirname(sys.argv[0]))
- g_proton.cleanup_legacy_dist()
- g_proton.do_steampipe_fixups()
g_compatdata = CompatData(os.environ["STEAM_COMPAT_DATA_PATH"])
@@ -1703,7 +1700,8 @@ if __name__ == "__main__":
g_session.init_wine()
if g_proton.missing_default_prefix():
- g_proton.make_default_prefix()
+ log("Default prefix is missing, something is very wrong.")
+ sys.exit(1)
g_session.init_session(sys.argv[1] != "runinprefix")
--
2.37.3

View File

@ -1,388 +0,0 @@
# Maintainer: loathingkernel <loathingkernel _a_ gmail _d_ com>
pkgname=proton-ge-custom
_srctag=GE-Proton7-35
_commit=
pkgver=${_srctag//-/.}
_geckover=2.47.3
_monover=7.3.1
pkgrel=1
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
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
lzo lib32-lzo
libxkbcommon lib32-libxkbcommon
libvpx lib32-libvpx
'sdl2>=2.0.16' 'lib32-sdl2>=2.0.16'
libsoup3 lib32-libsoup3
libgudev lib32-libgudev
desktop-file-utils
python
steam-native-runtime
cabextract
)
makedepends=(autoconf bison perl fontforge flex mingw-w64-gcc
git wget rsync mingw-w64-tools lld nasm meson cmake afdko python-pefile
glslang vulkan-headers
clang
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'
rust lib32-rust-libs
libgphoto2
gsm
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
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
libgphoto2
gsm
dosbox
)
makedepends=(${makedepends[@]} ${depends[@]})
provides=('proton')
install=${pkgname}.install
source=(
proton-ge-custom::git+https://github.com/gloriouseggroll/proton-ge-custom.git#tag=${_srctag}
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
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
)
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 <<EOF
#!/usr/bin/bash
$(which ccache 2> /dev/null) /usr/bin/$t ${_opt[1]} "\$@"
EOF
done
install -Dm755 /dev/stdin wrappers/${_opt[0]}-pc-linux-gnu-ld <<EOF
#!/usr/bin/bash
/usr/bin/ld ${_opt[2]} "\$@"
EOF
install -Dm755 /dev/stdin wrappers/${_opt[0]}-pc-linux-gnu-as <<EOF
#!/usr/bin/bash
/usr/bin/as ${_opt[3]} "\$@"
EOF
install -Dm755 /dev/stdin wrappers/${_opt[0]}-pc-linux-gnu-strip <<EOF
#!/usr/bin/bash
/usr/bin/strip -F ${_opt[4]} "\$@"
EOF
done
}
prepare() {
# Provide wrappers to compiler tools
rm -rf wrappers && mkdir wrappers
_make_wrappers
[ ! -d gecko ] && mkdir gecko
mv wine-gecko-${_geckover}-x86{,_64}.tar.xz gecko/
[ ! -d mono ] && mkdir mono
mv wine-mono-${_monover}-x86.tar.xz mono/
[ ! -d build ] && mkdir build
cd proton-ge-custom
_submodules=(
wine-valve::wine
dxvk
openvr
liberation-fonts::fonts/liberation-fonts
gstreamer
gst-plugins-base
gst-plugins-good
gst-orc
vkd3d-proton
OpenXR-SDK
dxvk-nvapi
vkd3d-valve::vkd3d
Vulkan-Headers
SPIRV-Headers
Vulkan-Loader
glslang
gst-libav
ffmpeg::FFmpeg
dav1d
gst-plugins-rs
graphene
wine-staging
protonfixes-gloriouseggroll::protonfixes
gst-plugins-bad
gst-plugins-ugly
)
for submodule in "${_submodules[@]}"; do
git submodule init "${submodule#*::}"
git submodule set-url "${submodule#*::}" "$srcdir"/"${submodule%::*}"
git submodule update "${submodule#*::}"
done
pushd dxvk
git submodule init include/{vulkan,spirv}
git submodule set-url include/vulkan "$srcdir/Vulkan-Headers"
git submodule set-url include/spirv "$srcdir/SPIRV-Headers"
git submodule update include/{vulkan,spirv}
popd
pushd vkd3d-proton
for submodule in subprojects/{dxil-spirv,Vulkan-Headers,SPIRV-Headers}; do
git submodule init "${submodule}"
git submodule set-url "${submodule}" "$srcdir"/"${submodule#*/}"
git submodule update "${submodule}"
done
pushd subprojects/dxil-spirv
git submodule init third_party/spirv-headers
git submodule set-url third_party/spirv-headers "$srcdir"/SPIRV-Headers
git submodule update third_party/spirv-headers
popd
popd
pushd dxvk-nvapi
git submodule init external/Vulkan-Headers
git submodule set-url external/Vulkan-Headers "$srcdir"/Vulkan-Headers
git submodule update external/Vulkan-Headers
# GCC 12 build failure
git cherry-pick -n 33bf3c7a6a3dc9e330cd338bf1877b5481c655e3
popd
for submodule in gst-plugins-rs media-converter; do
pushd $submodule
export RUSTUP_TOOLCHAIN=stable
export CARGO_HOME="${SRCDEST}"/proton-cargo
cargo update
cargo fetch --locked --target "i686-unknown-linux-gnu"
cargo fetch --locked --target "x86_64-unknown-linux-gnu"
popd
done
./patches/protonprep-valve-staging.sh
pushd wine
# From Arch Wine
sed 's|OpenCL/opencl.h|CL/opencl.h|g' -i configure*
# Fix openldap 2.5+ detection
sed 's/-lldap_r/-lldap/' -i configure
popd
patch -p1 -i "$srcdir"/0001-AUR-pkgbuild-changes.patch
# Remove repos from srcdir to save space
for submodule in "${_submodules[@]}"; do
rm -rf "$srcdir"/"${submodule%::*}"
done
rm -rf "$srcdir"/dxil-spirv
rm -rf "$srcdir"/Vulkan-Headers
rm -rf "$srcdir"/SPIRV-Headers
}
build() {
export PATH="$(pwd)/wrappers:$PATH"
cd build
ROOTLESS_CONTAINER="" \
../proton-ge-custom/configure.sh \
--container-engine="none" \
--proton-sdk-image="" \
--steam-runtime=native \
--no-proton-sdk \
--build-name="${pkgname}"
# By default export FLAGS used by proton and ignore makepkg
# This overrides FLAGS from makepkg.conf, if you comment these you are on your own
# If you want the "best" possible optimizations for your system you can use
# `-march=native` and remove the `-mtune=core-avx2` option.
export CFLAGS="-O2 -march=nocona -mtune=core-avx2 -pipe"
export CXXFLAGS="-O2 -march=nocona -mtune=core-avx2 -pipe"
export RUSTFLAGS="-C opt-level=2 -C target-cpu=nocona"
export LDFLAGS="-Wl,-O1,--sort-common,--as-needed"
# If using -march=native and the CPU supports AVX, launching a d3d9
# game can cause an Unhandled exception. The cause seems to be the
# combination of AVX instructions and tree vectorization (implied by O3),
# all tested archictures from sandybridge to haswell are affected.
# Since Wine 5.16 AVX is supported. Testing showed 32bit applications
# crashing with AVX regardless, but 64bit applications worked just fine.
# Relevant Wine issues
# https://bugs.winehq.org/show_bug.cgi?id=45289
# https://bugs.winehq.org/show_bug.cgi?id=43516
# AVX is "hard" disabled for 32bit in any case.
# AVX2 for 64bit is disabled below.
export CFLAGS+=" -mno-avx2"
export CXXFLAGS+=" -mno-avx2"
export RUSTUP_TOOLCHAIN=stable
export CARGO_HOME="${SRCDEST}"/proton-cargo
export WINEESYNC=0
export WINEFSYNC=0
export DISPLAY=
SUBJOBS=$([[ "$MAKEFLAGS" =~ -j\ *([1-9][0-9]*) ]] && echo "${BASH_REMATCH[1]}" || echo "$(nproc)") \
make -j1 dist
}
package() {
cd build
local _compatdir="$pkgdir/usr/share/steam/compatibilitytools.d"
mkdir -p "$_compatdir"
cp -rf --no-dereference --preserve=mode,links dist "$_compatdir/${pkgname}"
mkdir -p "$pkgdir/usr/share/licenses/${pkgname}"
mv "$_compatdir/${pkgname}"/LICENSE{,.OFL} \
"$pkgdir/usr/share/licenses/${pkgname}"
cd "$_compatdir/${pkgname}/files"
i686-w64-mingw32-strip --strip-unneeded \
$(find lib/wine \( -iname fakedlls -or -iname i386-windows \) -prune -false -or -iname "*.dll" -or -iname "*.exe")
x86_64-w64-mingw32-strip --strip-unneeded \
$(find lib64/wine \( -iname fakedlls -or -iname x86_64-windows \) -prune -false -or -iname "*.dll" -or -iname "*.exe")
local _geckodir="share/wine/gecko/wine-gecko-${_geckover}"
i686-w64-mingw32-strip --strip-unneeded \
$(find "$_geckodir"-x86 -iname "*.dll" -or -iname "*.exe")
x86_64-w64-mingw32-strip --strip-unneeded \
$(find "$_geckodir"-x86_64 -iname "*.dll" -or -iname "*.exe")
local _monodir="share/wine/mono/wine-mono-${_monover}"
i686-w64-mingw32-strip --strip-unneeded \
$(find "$_monodir"/lib/mono -iname "*.dll" -or -iname "*.exe")
i686-w64-mingw32-strip --strip-unneeded \
"$_monodir"/lib/x86/*.dll \
$(find "$_monodir" -iname "*x86.dll" -or -iname "*x86.exe")
x86_64-w64-mingw32-strip --strip-unneeded \
"$_monodir"/lib/x86_64/*.dll \
$(find "$_monodir" -iname "*x86_64.dll" -or -iname "*x86_64.exe")
}
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'08d318f3dd6440a8a777cf044ccab039b0d9c8809991d2180eb3c9f903135db3'
'0beac419c20ee2e68a1227b6e3fa8d59fec0274ed5e82d0da38613184716ef75'
'55ca808868599b1d8ad53b222b8cb26fd96fa818c511163e361238025c76e9fe'
'b2cc798fe8a7b8a482db058930d526d30237839eada28cc2262a86270731d2f7')

View File

@ -1,13 +0,0 @@
#!/bin/sh
post_install() {
echo ":: This package, due to the way it is build and packaged is officialy UNSUPPORTED"
echo " by GloriousEggroll. Please do not bother them if something doesn't run with it."
echo " If something does NOT run with this package, but DOES run with the same official"
echo " version, installed according to upstream instructions, feel free to report it through"
echo " the AUR comment section."
}
post_upgrade() {
post_install
}