mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
games-util/hydra-launcher-bin: add 4.1.1
Signed-off-by: Gurov <gurov@disroot.org>
This commit is contained in:
2 files changed
+86
No files matched your search
@@ -1,3 +1,4 @@
|
|||||||
DIST hydralauncher-3.9.9.x86_64.rpm 146678961 BLAKE2B 61dac30c6399ed001f586ec9cd20302bd5457d5b2e247c4dd478fdd8804d412c66888d8a4a95b9641d1d9aeca9d5636f1793a28a8dbc1f17254031a731137529 SHA512 d201c6f02a0874b13595931981e41804168344c640258ac23253784eb9a314665f6cdf5bf6b18f5f674f8c9a1c1069931e0c5d18c822a1806fb93a827becba84
|
DIST hydralauncher-3.9.9.x86_64.rpm 146678961 BLAKE2B 61dac30c6399ed001f586ec9cd20302bd5457d5b2e247c4dd478fdd8804d412c66888d8a4a95b9641d1d9aeca9d5636f1793a28a8dbc1f17254031a731137529 SHA512 d201c6f02a0874b13595931981e41804168344c640258ac23253784eb9a314665f6cdf5bf6b18f5f674f8c9a1c1069931e0c5d18c822a1806fb93a827becba84
|
||||||
DIST hydralauncher-4.0.1.x86_64.rpm 149356377 BLAKE2B 6e910fe777ec1b0049ca2dd14f0e4c1590a3c9ffd3a7aaa40079ee769f281bebf62f1e7d5e7c51bd8e7db88a1a59c034f3b16781944842c9e5f7cd14e095557b SHA512 84085d86b3866f7cc53b57ee59b89152a26ac43922922de457588dc1a7b0b111f084604ff65167e3c83c4a02231014075614785ad532886caa2e3a312db3e8e3
|
DIST hydralauncher-4.0.1.x86_64.rpm 149356377 BLAKE2B 6e910fe777ec1b0049ca2dd14f0e4c1590a3c9ffd3a7aaa40079ee769f281bebf62f1e7d5e7c51bd8e7db88a1a59c034f3b16781944842c9e5f7cd14e095557b SHA512 84085d86b3866f7cc53b57ee59b89152a26ac43922922de457588dc1a7b0b111f084604ff65167e3c83c4a02231014075614785ad532886caa2e3a312db3e8e3
|
||||||
DIST hydralauncher-4.0.2.x86_64.rpm 149479069 BLAKE2B 3684a8612be62c95449b991b248bd84eae5e5d981d03fe61330e2ae6cd20fc1fddf6fa0abe5f86c2963fe3e446e26339078a7349a78a913b7e4550a69027d273 SHA512 2cdf3a4f48c26bf0d05ab537e5d373e4c6fc8415387a7061eb1a5d5e0a370e556300560319ea69c7845ddb879336ecacc769a01ce11cdc67ad1df582863d2f7b
|
DIST hydralauncher-4.0.2.x86_64.rpm 149479069 BLAKE2B 3684a8612be62c95449b991b248bd84eae5e5d981d03fe61330e2ae6cd20fc1fddf6fa0abe5f86c2963fe3e446e26339078a7349a78a913b7e4550a69027d273 SHA512 2cdf3a4f48c26bf0d05ab537e5d373e4c6fc8415387a7061eb1a5d5e0a370e556300560319ea69c7845ddb879336ecacc769a01ce11cdc67ad1df582863d2f7b
|
||||||
|
DIST hydralauncher-4.1.1.x86_64.rpm 155074409 BLAKE2B cadbd5e79bb785679a0acaf3ba0d27e534952612e9d2527f8401aa79eca116bd20685b32bc4c1d8d1ea6d639cf1a00dec6f659e99ee5cb86693c924af4f9e6a4 SHA512 1706ee686992b517ac28724cf961b72a77d78bb2f4c556ad1a06f242e18cc3b6928ca827f99d14614943dd62bc3e5adf88352efc2e4625c8be1b5438b6e72f81
|
||||||
@@ -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