From 3e550eb84e5edbb91c129b6502566dc4d4a4da17 Mon Sep 17 00:00:00 2001 From: Zakk Date: Tue, 24 Nov 2026 22:07:37 +1100 Subject: [PATCH] games-util/watt-toolkit-bin: add 3.3.0, drop 3.2.0 Upstream replaced the JIT tarball with Native AOT builds for x64 and arm64, so the bundled dotnet runtime and assemblies are gone. The program still runs Steam++.sh from its own directory to restart itself and through pkexec to import its certificate (Startup.RunSelfProcess.cs, LinuxPlatformServiceImpl.Certificate.cs at the 3.3.0 tag), but the AOT tarball no longer ships it, so install a wrapper under that name and keep sys-auth/polkit. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Zakk --- games-util/watt-toolkit-bin/Manifest | 3 +- .../files/watt-toolkit-bin.sh | 10 ++---- ...0.ebuild => watt-toolkit-bin-3.3.0.ebuild} | 31 +++++++++---------- 3 files changed, 19 insertions(+), 25 deletions(-) rename games-util/watt-toolkit-bin/{watt-toolkit-bin-3.2.0.ebuild => watt-toolkit-bin-3.3.0.ebuild} (56%) diff --git a/games-util/watt-toolkit-bin/Manifest b/games-util/watt-toolkit-bin/Manifest index 4199d642f0..98489bbc4b 100644 --- a/games-util/watt-toolkit-bin/Manifest +++ b/games-util/watt-toolkit-bin/Manifest @@ -1 +1,2 @@ -DIST watt-toolkit-bin-3.2.0.tgz 90240184 BLAKE2B 9f1e373066e779fd7d35be61d9b1aaa263bb9afb98b3f1c2b724a61240303b5424b7a80e3446b46db7f8cec6d331812eb2d8f2788dc816e1816c6c215ab1c877 SHA512 9a77218a68f3ba5ea7e69342b96d41f5aaa3304988bd21231c1a39165cf802d6ed18dde713ff73ba0cb14bfa26c09a3ba0d2df0ee869b00ecae75db69cc9a4e7 +DIST watt-toolkit-bin-3.3.0-amd64.tgz 66168940 BLAKE2B 738452e20b2a38e034ab2ba52d0faa1c87bbff33417c78f174dc5f7cdf3c61e4f127f44f4ce2f1047d152c28e37b447d5ce75991560c7b21ddd8092e57917276 SHA512 ebe0c45497edbfdab1bfacc6bf0bbbd1c9a73cded029674273fe8339d3e49d2bedfc59ee7921c462e1017e22c3ebc2791798ab35f637c33bbed283a015b15ab8 +DIST watt-toolkit-bin-3.3.0-arm64.tgz 63053333 BLAKE2B 6c7c638cb40ee337f2b7dd38db12388a4c2a147b89004e3207ab4e7c0eb8ab471f585ae561bb759b6e056bda9da8380890ce2ab2caf492055bca6ac7751524ba SHA512 41980c21048c2377747a2c4db759b35a3766e233927a64b6c96b10297b52f6bc1805336d0404313a5f5ff312068052ece244a00b902fd141d1e66e1578b5aa3f diff --git a/games-util/watt-toolkit-bin/files/watt-toolkit-bin.sh b/games-util/watt-toolkit-bin/files/watt-toolkit-bin.sh index d3a9dd9c3b..d817ec118c 100644 --- a/games-util/watt-toolkit-bin/files/watt-toolkit-bin.sh +++ b/games-util/watt-toolkit-bin/files/watt-toolkit-bin.sh @@ -1,10 +1,6 @@ #!/bin/sh # Installed as Steam++.sh in the application directory, and linked as -# /usr/bin/watt-toolkit. The program itself runs Steam++.sh with pkexec for -# privileged work, so this file has to stay on that path. +# /usr/bin/watt-toolkit. The program runs Steam++.sh to restart itself and +# with pkexec to import its certificate, so this file has to stay on that path. -appdir=/usr/lib/watt-toolkit - -DOTNET_ROOT="${appdir}/dotnet" -export DOTNET_ROOT -exec "${DOTNET_ROOT}/dotnet" exec "${appdir}/Steam++.dll" "$@" +exec /usr/lib/watt-toolkit/Steam++ "$@" diff --git a/games-util/watt-toolkit-bin/watt-toolkit-bin-3.2.0.ebuild b/games-util/watt-toolkit-bin/watt-toolkit-bin-3.3.0.ebuild similarity index 56% rename from games-util/watt-toolkit-bin/watt-toolkit-bin-3.2.0.ebuild rename to games-util/watt-toolkit-bin/watt-toolkit-bin-3.3.0.ebuild index bc748fec43..817ea3d8c0 100644 --- a/games-util/watt-toolkit-bin/watt-toolkit-bin-3.2.0.ebuild +++ b/games-util/watt-toolkit-bin/watt-toolkit-bin-3.3.0.ebuild @@ -7,12 +7,16 @@ inherit desktop fcaps optfeature xdg DESCRIPTION="Multi-purpose Steam toolbox (Watt Toolkit, formerly Steam++)" HOMEPAGE="https://steampp.net/ https://github.com/BeyondDimension/SteamTools" -SRC_URI="https://github.com/BeyondDimension/SteamTools/releases/download/${PV}/Steam%2B%2B_v${PV}_linux_x64.tgz -> ${P}.tgz" +URI_PREFIX="https://github.com/BeyondDimension/SteamTools/releases/download/${PV}" +SRC_URI=" + amd64? ( ${URI_PREFIX}/Steam%2B%2B_v${PV}_linux_x64_aot.tgz -> ${P}-amd64.tgz ) + arm64? ( ${URI_PREFIX}/Steam%2B%2B_v${PV}_linux_arm64_aot.tgz -> ${P}-arm64.tgz ) +" S="${WORKDIR}" LICENSE="GPL-3" SLOT="0" -KEYWORDS="-* ~amd64" +KEYWORDS="-* ~amd64 ~arm64" RDEPEND=" app-crypt/mit-krb5 @@ -21,6 +25,7 @@ RDEPEND=" dev-libs/openssl media-libs/fontconfig sys-auth/polkit + sys-libs/glibc sys-libs/libcap x11-misc/xdg-utils " @@ -34,30 +39,22 @@ FILECAPS=( src_install() { local appdir=/usr/lib/watt-toolkit - insinto "${appdir}" - doins -r assemblies/* modules native - fperms 0755 "${appdir}/modules/Accelerator/Steam++.Accelerator" + exeinto "${appdir}" + doexe Steam++ libHarfBuzzSharp.so libSkiaSharp.so libe_sqlite3.so - # the app targets net11.0, which the tree does not provide - rm dotnet/dnx dotnet/shared/Microsoft.NETCore.App/*/libcoreclrtraceptprovider.so || die - doins -r dotnet - fperms 0755 "${appdir}/dotnet/dotnet" - find "${ED}${appdir}/dotnet" -name '*.so' -exec chmod 0755 {} + || die + exeinto "${appdir}/modules/Accelerator" + doexe modules/Accelerator/Steam++.Accelerator - insinto "${appdir}/script" - doins script/environment_check.sh - fperms 0755 "${appdir}/script/environment_check.sh" + exeinto "${appdir}/script" + doexe script/environment_check.sh - # the program runs this name from its own directory, with pkexec + # the program runs this name from its own directory, also with pkexec exeinto "${appdir}" newexe "${FILESDIR}"/watt-toolkit-bin.sh Steam++.sh dosym ../lib/watt-toolkit/Steam++.sh /usr/bin/watt-toolkit newicon -s 512 Icons/Watt-Toolkit.png net.steampp.app.png newmenu "${FILESDIR}"/watt-toolkit-bin.desktop net.steampp.app.desktop - - # the single-file bundle is appended to this executable, strip truncates it - dostrip -x /usr/lib/watt-toolkit/modules/Accelerator/Steam++.Accelerator } pkg_postinst() {