summaryrefslogtreecommitdiff
path: root/games-util/heroic-bin
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-08-14 11:06:13 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-08-14 11:06:13 +0100
commite000645bea7492c9f5277722c0ada7e1ee0b4833 (patch)
treea604499d25e682002ec55cc5e7d14e0c53809199 /games-util/heroic-bin
parentbe8708090362c01c6111c4b76f1e395c14d86e00 (diff)
gentoo auto-resync : 14:08:2024 - 11:06:13
Diffstat (limited to 'games-util/heroic-bin')
-rw-r--r--games-util/heroic-bin/Manifest4
-rw-r--r--games-util/heroic-bin/heroic-bin-2.15.1.ebuild141
2 files changed, 145 insertions, 0 deletions
diff --git a/games-util/heroic-bin/Manifest b/games-util/heroic-bin/Manifest
index e1b684d755e4..694431075712 100644
--- a/games-util/heroic-bin/Manifest
+++ b/games-util/heroic-bin/Manifest
@@ -2,8 +2,12 @@ DIST com.heroicgameslauncher.hgl.2.13.0.desktop 317 BLAKE2B e4c7cc834bc8688703b9
DIST com.heroicgameslauncher.hgl.2.13.0.png 9797 BLAKE2B c6f76df4ec2fd25323f5c37e03605647ede8f8c2ed48cfbb8af11aad22ae90182d3678b943633b46a2d8dfb0c1cbd1a275b6c62dde238b9b0f68cbafb4bf3697 SHA512 68e9881fb4f123008398409825aa8cf70cec34365a23adb1234f7c054a14f40d159e7d8912cfedac0bb2b12f1d3c3c980469c2fca9735d4bc06bd4074aecc7e3
DIST com.heroicgameslauncher.hgl.2.14.1.desktop 317 BLAKE2B e4c7cc834bc8688703b982897b13542543a3d28c50f7fe3f8e680c233762d612c0b24f7036919571451b96002f493cb55fb6d75241e124879ae486c5b4053f96 SHA512 314c7449ee7b83c77eda117536d0c2da1c5d3882a3f08f5fe0381451de734ed388e8941de8440521dad2f2fc335d214345e7301a2929b8fefa4f64a7a2ff804e
DIST com.heroicgameslauncher.hgl.2.14.1.png 9797 BLAKE2B c6f76df4ec2fd25323f5c37e03605647ede8f8c2ed48cfbb8af11aad22ae90182d3678b943633b46a2d8dfb0c1cbd1a275b6c62dde238b9b0f68cbafb4bf3697 SHA512 68e9881fb4f123008398409825aa8cf70cec34365a23adb1234f7c054a14f40d159e7d8912cfedac0bb2b12f1d3c3c980469c2fca9735d4bc06bd4074aecc7e3
+DIST com.heroicgameslauncher.hgl.2.15.1.desktop 317 BLAKE2B e4c7cc834bc8688703b982897b13542543a3d28c50f7fe3f8e680c233762d612c0b24f7036919571451b96002f493cb55fb6d75241e124879ae486c5b4053f96 SHA512 314c7449ee7b83c77eda117536d0c2da1c5d3882a3f08f5fe0381451de734ed388e8941de8440521dad2f2fc335d214345e7301a2929b8fefa4f64a7a2ff804e
+DIST com.heroicgameslauncher.hgl.2.15.1.png 9797 BLAKE2B c6f76df4ec2fd25323f5c37e03605647ede8f8c2ed48cfbb8af11aad22ae90182d3678b943633b46a2d8dfb0c1cbd1a275b6c62dde238b9b0f68cbafb4bf3697 SHA512 68e9881fb4f123008398409825aa8cf70cec34365a23adb1234f7c054a14f40d159e7d8912cfedac0bb2b12f1d3c3c980469c2fca9735d4bc06bd4074aecc7e3
DIST heroic-bin-2.13.0.tar.xz 105883932 BLAKE2B 93161f87fc734540338914bf63b2231b7bd7bb4a265092a831043fa6d771cff2211395f0cf92dacff12eebb369e8c5d8687b7662c559dc72635f91f858341122 SHA512 59466b2516b4e42fb3ea7dc9f96834ee8598e2424a9615acbd9de65d4035634f82181a4b5e6664eb186173b7199b191418c3eab7e582450a489295e60ed39d1d
DIST heroic-bin-2.14.1.tar.xz 106272512 BLAKE2B 2bacc905a5ec71df0051e5ea5c1b34a1596fb6d7c4530ee0d81b8984b53bfcc097210d63ca133e6cae608a6d44ee92c108ff9f114e4a159e95c6e420a7ae5474 SHA512 564089f606f309cc7faddc0ee8afc2303d4c729492a3be14acbf773e38cc2fece0ebea34f6294dbdeacd6fdcf7a28e1608115e27bdcf0618c7950a5b024f0e1c
+DIST heroic-bin-2.15.1.tar.xz 109430040 BLAKE2B 433f22a6f40071b3919d8c54d4be580c3aedae3c7e704d5085ea7aeb61d97095a467a5a63a6f1344b141bbb494a79735eadadfb228270347711e89c3446efe59 SHA512 2da4f46d256cbb1dbfe507f1a13545fb1dedabbf48d649c6e742f116520438e145a57758974e340d80478b8cbcd4cc68565c66552b56984099f81d415c7bd4de
EBUILD heroic-bin-2.13.0-r1.ebuild 3840 BLAKE2B 9e9199c9a8afbe65dd431811ced72039c080cb8a8869975c8e3ae4d51d9d10748fb635e3aaabaed169b251062757b09573acaf40c40fcfdf105570146bcb1beb SHA512 97bf272c7ca20d96895f7cdb7b539847f843a03f331715005c282fa54ac65b6f71b12f8225ddf942146eaed981d1d4bc2a21e4e2cf0c39e85ebc1994e6aad5fd
EBUILD heroic-bin-2.14.1-r1.ebuild 3840 BLAKE2B 9e9199c9a8afbe65dd431811ced72039c080cb8a8869975c8e3ae4d51d9d10748fb635e3aaabaed169b251062757b09573acaf40c40fcfdf105570146bcb1beb SHA512 97bf272c7ca20d96895f7cdb7b539847f843a03f331715005c282fa54ac65b6f71b12f8225ddf942146eaed981d1d4bc2a21e4e2cf0c39e85ebc1994e6aad5fd
+EBUILD heroic-bin-2.15.1.ebuild 3840 BLAKE2B c3371d9ea4711fcd1cd5df03fe2368cedbd275c765aa5700a331e7ef485c40982520ac48d087bee1b9e9f65b087aad4eecdb85fdc22e4f0664cce78def33426f SHA512 8b3dc5ac84bf939166ef1ed7f1748b12405fe9f5832ef0ce6956357362f244f33a4b1b0f36c55212127fb4592cd612a925966764771e2b70fdd995a2855c9369
MISC metadata.xml 1072 BLAKE2B 629aa00cb90467901da132375532f520cf2e9dd3720686487278056aa415d024e00a19249ef16af82adefabad698e381112a2d54d2335b62bfa26476f0763223 SHA512 794387073bbede506485de30babe902fc829ad955673173444bd450415c14a976236b967497253db9934f5a661bb11561ddc11550071b53faef9b2d9c434636e
diff --git a/games-util/heroic-bin/heroic-bin-2.15.1.ebuild b/games-util/heroic-bin/heroic-bin-2.15.1.ebuild
new file mode 100644
index 000000000000..7aa5ad868f62
--- /dev/null
+++ b/games-util/heroic-bin/heroic-bin-2.15.1.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2024 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_{10..13} )
+
+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}.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}/${P/-bin}"
+
+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
+ sys-libs/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
+}