games-util/heroic-bin: add 2.22.0

Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
Bernard Cafarelli
2026-05-16 22:01:34 +02:00
parent 3c7f8f2a63
commit 0433905aee
2 changed files with 144 additions and 0 deletions

View File

@@ -2,5 +2,8 @@ DIST com.heroicgameslauncher.hgl.2.20.1.desktop 529 BLAKE2B effd9f5d89cb8453e616
DIST com.heroicgameslauncher.hgl.2.20.1.png 9797 BLAKE2B c6f76df4ec2fd25323f5c37e03605647ede8f8c2ed48cfbb8af11aad22ae90182d3678b943633b46a2d8dfb0c1cbd1a275b6c62dde238b9b0f68cbafb4bf3697 SHA512 68e9881fb4f123008398409825aa8cf70cec34365a23adb1234f7c054a14f40d159e7d8912cfedac0bb2b12f1d3c3c980469c2fca9735d4bc06bd4074aecc7e3
DIST com.heroicgameslauncher.hgl.2.21.0.desktop 502 BLAKE2B b3f22921bde1c26b9cd97fa6f3bfadf225e0a011f2ba569d1caf2fcc81b21ecb80e0f61e01e56305de3ca8060860e0291149b4148a744dc55cca574530221f7b SHA512 76b7ba92f473cd55013f89e81e34a53e8ec85a9a6792f0f2e6a31ec1e305d96fba8e54a32606d460095cfa211cb763ab0fda55b6679fe17c36f26a4ff78bd368
DIST com.heroicgameslauncher.hgl.2.21.0.png 9797 BLAKE2B c6f76df4ec2fd25323f5c37e03605647ede8f8c2ed48cfbb8af11aad22ae90182d3678b943633b46a2d8dfb0c1cbd1a275b6c62dde238b9b0f68cbafb4bf3697 SHA512 68e9881fb4f123008398409825aa8cf70cec34365a23adb1234f7c054a14f40d159e7d8912cfedac0bb2b12f1d3c3c980469c2fca9735d4bc06bd4074aecc7e3
DIST com.heroicgameslauncher.hgl.2.22.0.desktop 502 BLAKE2B b3f22921bde1c26b9cd97fa6f3bfadf225e0a011f2ba569d1caf2fcc81b21ecb80e0f61e01e56305de3ca8060860e0291149b4148a744dc55cca574530221f7b SHA512 76b7ba92f473cd55013f89e81e34a53e8ec85a9a6792f0f2e6a31ec1e305d96fba8e54a32606d460095cfa211cb763ab0fda55b6679fe17c36f26a4ff78bd368
DIST com.heroicgameslauncher.hgl.2.22.0.png 9797 BLAKE2B c6f76df4ec2fd25323f5c37e03605647ede8f8c2ed48cfbb8af11aad22ae90182d3678b943633b46a2d8dfb0c1cbd1a275b6c62dde238b9b0f68cbafb4bf3697 SHA512 68e9881fb4f123008398409825aa8cf70cec34365a23adb1234f7c054a14f40d159e7d8912cfedac0bb2b12f1d3c3c980469c2fca9735d4bc06bd4074aecc7e3
DIST heroic-bin-2.20.1.tar.xz 122450760 BLAKE2B 4c7f8140d937ca483ee3e788b8cbde64b24aacd6c0776daf75a5d9eb237a512849be5cb8c9ef1da0fedadc9855cedf00c38ac8a0ee98c37a2e8f3731c86a6843 SHA512 f4bd6f1cf388d4049ce018054a96bf9499d42c8a4966833315513bb81c04c3dfe1216221d5ba4b2e1b5610a8948ed6a77097aeb12d5b458b8ac7f72085d213ce
DIST heroic-bin-2.21.0.tar.xz 128111552 BLAKE2B c9ece954e756351db59d9177902522a397036f957d7f7f580edbb802932b99ae467c626f2bc75d9d7956e2e383b34727d498c1035fac79596da242f57099d70c SHA512 a173d65df9f4732db9512b2f2a98593f9eb6f1a5f87b0a5559c64e778e70c5a693ef81c24a2e68652781c88993c4c613e46ed750f7600aeae897e4ff0205cb27
DIST heroic-bin-2.22.0.tar.xz 128256032 BLAKE2B e9afda53545aedb81cc449161f71b73965ad25254570606d227e29440596d146076063665bbd81966e25e1c517a9738b68675a8531c66dca7b6a74b7feeaf5df SHA512 648505146cb46fc8963a01fd1aa72461ed585c79a3de1e2842f8d3f138475b90886eb90f05b0da02df384c1b07cdd690c5140ec96e53f76a17b10750c403e1c0

View File

@@ -0,0 +1,141 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CHROMIUM_LANGS="
af am ar bg bn ca cs da de el en-GB en-US es es-419 et fa fi fil fr gu he hi
hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr sv
sw ta te th tr uk ur vi zh-CN zh-TW
"
PYTHON_COMPAT=( python3_{11..14} python3_13t )
inherit chromium-2 desktop python-single-r1 xdg
DESCRIPTION="GOG and Epic Games Launcher for Linux"
HOMEPAGE="https://heroicgameslauncher.com/
https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/"
SRC_URI="
https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases/download/v${PV}/heroic-${PV}-linux-x64.tar.xz
-> ${P}.tar.xz
https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/raw/v${PV}/flatpak/com.heroicgameslauncher.hgl.desktop
-> com.heroicgameslauncher.hgl.${PV}.desktop
https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/raw/v${PV}/flatpak/com.heroicgameslauncher.hgl.png
-> com.heroicgameslauncher.hgl.${PV}.png
"
S="${WORKDIR}/Heroic-${PV}-linux-x64"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="gamescope"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
${PYTHON_DEPS}
app-accessibility/at-spi2-core
app-arch/brotli
app-arch/bzip2
dev-libs/expat
dev-libs/fribidi
dev-libs/glib
dev-libs/gmp
dev-libs/libffi
dev-libs/libpcre2
dev-libs/libtasn1
dev-libs/nettle
dev-libs/nspr
dev-libs/nss
dev-libs/wayland
media-fonts/freefont
media-gfx/graphite2
media-libs/alsa-lib
media-libs/fontconfig
media-libs/freetype
media-libs/harfbuzz
media-libs/libepoxy
media-libs/libjpeg-turbo
media-libs/libpng
media-libs/mesa
media-video/ffmpeg
net-dns/libidn2
net-libs/gnutls
net-print/cups
sys-apps/dbus
sys-libs/glibc
virtual/zlib:=
x11-libs/cairo
x11-libs/gdk-pixbuf
x11-libs/gtk+:3
x11-libs/libX11
x11-libs/libXau
x11-libs/libXcomposite
x11-libs/libXcursor
x11-libs/libXdamage
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libXi
x11-libs/libXrandr
x11-libs/libXrender
x11-libs/libdrm
x11-libs/libxcb
x11-libs/libxkbcommon
x11-libs/pango
x11-libs/pixman
gamescope? ( gui-wm/gamescope )
"
QA_PREBUILT=".*"
src_configure() {
default
chromium_suid_sandbox_check_kernel_config
}
src_prepare() {
default
cd locales || die
chromium_remove_language_paks
# Create gamescope desktop file
if use gamescope; then
cp "${DISTDIR}"/com.heroicgameslauncher.hgl.${PV}.desktop \
"${WORKDIR}"/com.heroicgameslauncher.hgl.gamescope.${PV}.desktop || die
sed -i 's/Name=Heroic Games Launcher/Name=Heroic Games Launcher (Gamescope)/g' \
"${WORKDIR}"/com.heroicgameslauncher.hgl.gamescope.${PV}.desktop || die
sed -i 's/Exec=heroic-run %u/Exec=env GDK_BACKEND=wayland gamescope -f -R --RT --force-grab-cursor --prefer-vk-device --adaptive-sync --nested-unfocused-refresh 30 -- heroic-run --ozone-platform=x11 --enable-features=UseOzonePlatform,WaylandWindowDecorations/g' \
"${WORKDIR}"/com.heroicgameslauncher.hgl.gamescope.${PV}.desktop || die
fi
}
src_install() {
local app_root=/opt/${P/-bin}
local app_dest="${ED}"/${app_root}
dodoc LICENSE.*
rm LICENSE.* || die
dodir "${app_root%/*}"
cp -r "${S}" "${app_dest}" || die
dosym -r "${PYTHON}" \
"${app_root}"/resources/app.asar.unpacked/node_modules/register-scheme/build/node_gyp_bins/python3
find "${app_dest}" -type f -name "*.a" -exec rm {} + || die
dosym -r "${app_root}"/heroic /usr/bin/heroic-run
# Install resources: desktop file and icon.
newmenu "${DISTDIR}"/com.heroicgameslauncher.hgl.${PV}.desktop \
com.heroicgameslauncher.hgl.desktop
if use gamescope; then
newmenu "${WORKDIR}"/com.heroicgameslauncher.hgl.gamescope.${PV}.desktop \
com.heroicgameslauncher.hgl.gamescope.desktop
fi
newicon "${DISTDIR}"/com.heroicgameslauncher.hgl.${PV}.png \
com.heroicgameslauncher.hgl.png
}