mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 14:43:27 -04:00
games-util/hydra-launcher-bin: add 3.9.9
Signed-off-by: Gurov <gurov@disroot.org>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
DIST hydralauncher-3.8.3.x86_64.rpm 160044397 BLAKE2B d14f3109711cedb586f9f6fce3947730425a9d6ce4bb27e705f15d03e75fa1d1c5684f678bb8226caa4dd5f1427c3f9ef66449a5f32a243d1487c76444fb7a02 SHA512 5fc78c6f200653f8439eca6167c3c3d79669e7d4e12789af8c7700f1f90a26845894dc6b8f66b1b7ef991c592da9f9f29f3e90b510ffed6ab18c707925b78047
|
||||
DIST hydralauncher-3.9.5.x86_64.rpm 145053385 BLAKE2B 5e7b3a382f49a7cfa3cac467a3502e6008996c43287d9b211149359f19e08ec657656074eb4e22a876f6a6f2a813bd29e5c3447bb7c005b1de12ae52e27ff173 SHA512 db4354bacb66ecb3b26e157c39d7a6789107cdb4217512a5c5f8e1d785a899b1b7382e855e83ea757be9da88be63fa5111b0b6b8a756df1e5d0b1aed2307fae0
|
||||
DIST hydralauncher-3.9.7.x86_64.rpm 149641105 BLAKE2B 24350b8be52cb04da5a5986966c108a0ea5dedaf04908e87ee782b4979fffd94ff823dd7e71f792511e0c40144503f5ca2acc4d86cb82931409bd12e5ec22074 SHA512 beb6197991de9d6b2e773e24bebe8c45631d5d80e7d9270f4397b648624e71e90451e577325a4764bd49d142a39227020ff16e99456ff421556a8d06d2ac563e
|
||||
DIST hydralauncher-3.9.9.x86_64.rpm 146678961 BLAKE2B 61dac30c6399ed001f586ec9cd20302bd5457d5b2e247c4dd478fdd8804d412c66888d8a4a95b9641d1d9aeca9d5636f1793a28a8dbc1f17254031a731137529 SHA512 d201c6f02a0874b13595931981e41804168344c640258ac23253784eb9a314665f6cdf5bf6b18f5f674f8c9a1c1069931e0c5d18c822a1806fb93a827becba84
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
RPM_COMPRESS_TYPE="xz"
|
||||
|
||||
inherit desktop rpm xdg
|
||||
|
||||
DESCRIPTION="Open-source gaming platform and launcher"
|
||||
HOMEPAGE="https://github.com/hydralauncher/hydra"
|
||||
SRC_URI="amd64? ( https://github.com/hydralauncher/hydra/releases/download/v${PV}/hydralauncher-${PV}.x86_64.rpm )"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64"
|
||||
RESTRICT="bindist mirror strip"
|
||||
QA_PREBUILT="*"
|
||||
|
||||
# native modules (classic-level, sharp) are abi-coupled to the bundled
|
||||
# electron, so a system electron binary cannot be used
|
||||
RDEPEND="
|
||||
app-accessibility/at-spi2-core
|
||||
dev-libs/expat
|
||||
dev-libs/glib:2
|
||||
dev-libs/nspr
|
||||
dev-libs/nss
|
||||
media-libs/alsa-lib
|
||||
media-libs/fontconfig
|
||||
media-libs/mesa
|
||||
net-misc/aria2
|
||||
net-print/cups
|
||||
sys-apps/dbus
|
||||
virtual/zlib
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf:2
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/libdrm
|
||||
x11-libs/libX11
|
||||
x11-libs/libxcb
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXrandr
|
||||
x11-libs/pango"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# strip non-linux-x64 and musl prebuilds from classic-level
|
||||
local pb=opt/Hydra/resources/app.asar.unpacked/node_modules/classic-level/prebuilds
|
||||
find "${pb}" -mindepth 1 -maxdepth 1 -type d ! -name linux-x64 -exec rm -rf {} + || die
|
||||
rm -rf "${pb}"/linux-x64/*.musl.node || die
|
||||
|
||||
# strip musl variants from sharp
|
||||
local sharp_base=opt/Hydra/resources/app.asar.unpacked/node_modules/@img
|
||||
rm -rf "${sharp_base}"/*-linuxmusl-x64 || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /opt
|
||||
doins -r opt/Hydra
|
||||
|
||||
# restore executable bits stripped by doins
|
||||
while IFS= read -r -d '' exe; do
|
||||
fperms +x "/${exe}"
|
||||
done < <(find opt/Hydra -type f -executable -print0)
|
||||
|
||||
# chrome-sandbox requires setuid root for electron's sandbox
|
||||
fowners root "/opt/Hydra/chrome-sandbox"
|
||||
fperms 4711 "/opt/Hydra/chrome-sandbox"
|
||||
|
||||
domenu usr/share/applications/hydralauncher.desktop
|
||||
doicon -s 512 usr/share/icons/hicolor/512x512/apps/hydralauncher.png
|
||||
|
||||
# expose bundled libs to the bundled electron runtime
|
||||
exeinto /usr/bin
|
||||
newexe - hydralauncher <<-'EOF'
|
||||
#!/bin/sh
|
||||
export LD_LIBRARY_PATH="/opt/Hydra:${LD_LIBRARY_PATH}"
|
||||
exec /opt/Hydra/hydralauncher "$@"
|
||||
EOF
|
||||
}
|
||||
Reference in New Issue
Block a user