* [gentoo-commits] repo/proj/guru:dev commit in: games-util/HeroicGamesLauncher-bin/files/, games-util/HeroicGamesLauncher-bin/
@ 2023-07-09 20:33 Gonçalo Negrier Duarte
0 siblings, 0 replies; 2+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-07-09 20:33 UTC (permalink / raw
To: gentoo-commits
commit: 8121bac43bd0ad07804343ffa6ee52b1cdde2545
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Sun Jul 9 20:33:03 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Sun Jul 9 20:33:25 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8121bac4
games-util/HeroicGamesLauncher-bin: new package, add 2.8.0
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
.../HeroicGamesLauncher-bin-2.8.0.ebuild | 31 ++++++++++++++++++++++
games-util/HeroicGamesLauncher-bin/Manifest | 1 +
.../files/HeroicGamesLauncher.desktop | 11 ++++++++
games-util/HeroicGamesLauncher-bin/files/heroic | 3 +++
games-util/HeroicGamesLauncher-bin/metadata.xml | 7 +++++
5 files changed, 53 insertions(+)
diff --git a/games-util/HeroicGamesLauncher-bin/HeroicGamesLauncher-bin-2.8.0.ebuild b/games-util/HeroicGamesLauncher-bin/HeroicGamesLauncher-bin-2.8.0.ebuild
new file mode 100644
index 000000000..c1b8f79e7
--- /dev/null
+++ b/games-util/HeroicGamesLauncher-bin/HeroicGamesLauncher-bin-2.8.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop
+SRC_URI="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases/download/v${PV}/heroic-${PV}.tar.xz"
+DESCRIPTION="A Native GOG and Epic Games Launcher for Linux, Windows and Mac."
+HOMEPAGE="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher"
+
+LICENSE="GPL-3"
+SLOT="0"
+
+KEYWORDS="~amd64 ~x86"
+
+S="${WORKDIR}/heroic-${PV}"
+
+src_install() {
+ mv "${S}" "${WORKDIR}/heroic"
+ insinto /opt
+ doins -r "${WORKDIR}/heroic"
+ insinto /opt/bin
+ doins "${FILESDIR}/heroic"
+ fperms +x /opt/heroic /opt/bin/heroic
+
+ #fix login error both EPIC and GOG
+ fperms +x /opt/heroic/resources/app.asar.unpacked/build/bin/linux/{legendary, gogdl}
+
+ domenu "${FILESDIR}/HeroicGamesLauncher.desktop"
+ newicon "${WORKDIR}/heroic/resources/app.asar.unpacked/build/icon.png" heroic.png
+}
diff --git a/games-util/HeroicGamesLauncher-bin/Manifest b/games-util/HeroicGamesLauncher-bin/Manifest
new file mode 100644
index 000000000..c217b00de
--- /dev/null
+++ b/games-util/HeroicGamesLauncher-bin/Manifest
@@ -0,0 +1 @@
+DIST heroic-2.8.0.tar.xz 98002940 BLAKE2B 43059c4be66e86a3a3bb8b1b93fb41259dfc8a773ccaacb4e91a5eb955e602dab21100840eded9a710950d2b9d8f1df7c2c62a48f37738ed7f1ab5a40cc46198 SHA512 e0bd8e4b36149766d4f5485ba19752058a689d234f90caa89ca707e46295bf52b52e454768da6e298608894fdca0cd44128a56b0974ff93aac49f9fbce58dd05
diff --git a/games-util/HeroicGamesLauncher-bin/files/HeroicGamesLauncher.desktop b/games-util/HeroicGamesLauncher-bin/files/HeroicGamesLauncher.desktop
new file mode 100644
index 000000000..68ff364fd
--- /dev/null
+++ b/games-util/HeroicGamesLauncher-bin/files/HeroicGamesLauncher.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Heroic Games Launcher
+Exec=/opt/heroic/heroic %U
+Terminal=false
+Type=Application
+Icon=heroic
+StartupWMClass=Heroic
+Comment=An Open Source GOG and Epic Games launcher
+Comment[de]=Ein Open Source Spielelauncher for GOG und Epic Games
+MimeType=x-scheme-handler/heroic;
+Categories=Game;
\ No newline at end of file
diff --git a/games-util/HeroicGamesLauncher-bin/files/heroic b/games-util/HeroicGamesLauncher-bin/files/heroic
new file mode 100644
index 000000000..b539da32a
--- /dev/null
+++ b/games-util/HeroicGamesLauncher-bin/files/heroic
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+/opt/heroic/heroic %U
\ No newline at end of file
diff --git a/games-util/HeroicGamesLauncher-bin/metadata.xml b/games-util/HeroicGamesLauncher-bin/metadata.xml
new file mode 100644
index 000000000..27a574a1f
--- /dev/null
+++ b/games-util/HeroicGamesLauncher-bin/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <remote-id type="github">Heroic-Games-Launcher/HeroicGamesLauncher</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-util/HeroicGamesLauncher-bin/files/, games-util/HeroicGamesLauncher-bin/
@ 2023-07-12 16:42 Gonçalo Negrier Duarte
0 siblings, 0 replies; 2+ messages in thread
From: Gonçalo Negrier Duarte @ 2023-07-12 16:42 UTC (permalink / raw
To: gentoo-commits
commit: 4a713cbdd9faafd185e87e1be24637ea0278484b
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Wed Jul 12 16:36:30 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Wed Jul 12 16:41:53 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4a713cbd
games-util/HeroicGamesLauncher-bin: add gamescope useflag
* add desktop file to open with gamescope
* launch heroic using gamescope (app and all games)
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
.../HeroicGamesLauncher-bin-2.8.0.ebuild | 13 +++++++++++--
.../files/HeroicGamesLauncher-gamescope.desktop | 11 +++++++++++
games-util/HeroicGamesLauncher-bin/metadata.xml | 3 +++
3 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/games-util/HeroicGamesLauncher-bin/HeroicGamesLauncher-bin-2.8.0.ebuild b/games-util/HeroicGamesLauncher-bin/HeroicGamesLauncher-bin-2.8.0.ebuild
index f0dabe1f9..57a1ac448 100644
--- a/games-util/HeroicGamesLauncher-bin/HeroicGamesLauncher-bin-2.8.0.ebuild
+++ b/games-util/HeroicGamesLauncher-bin/HeroicGamesLauncher-bin-2.8.0.ebuild
@@ -11,10 +11,14 @@ HOMEPAGE="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher"
LICENSE="GPL-3"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+RDEPEND="gamescope? ( gui-wm/gamescope )"
+
+KEYWORDS="~amd64"
S="${WORKDIR}/heroic-${PV}"
+IUSE="gamescope"
+
src_install() {
mv "${S}" "${WORKDIR}/heroic"
insinto /opt
@@ -24,8 +28,13 @@ src_install() {
fperms +x /opt/heroic/heroic /opt/bin/heroic
#fix login error both EPIC and GOG
- fperms +x /opt/heroic/resources/app.asar.unpacked/build/bin/linux/legendary /opt/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
+ fperms +x /opt/heroic/resources/app.asar.unpacked/build/bin/linux/legendary \
+ /opt/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
domenu "${FILESDIR}/HeroicGamesLauncher.desktop"
newicon "${WORKDIR}/heroic/resources/app.asar.unpacked/build/icon.png" heroic.png
+ if use gamescope; then
+ #Start Heroic as gamescope window
+ domenu "${FILESDIR}/HeroicGamesLauncher-gamescope.desktop"
+ fi
}
diff --git a/games-util/HeroicGamesLauncher-bin/files/HeroicGamesLauncher-gamescope.desktop b/games-util/HeroicGamesLauncher-bin/files/HeroicGamesLauncher-gamescope.desktop
new file mode 100644
index 000000000..8b7836f91
--- /dev/null
+++ b/games-util/HeroicGamesLauncher-bin/files/HeroicGamesLauncher-gamescope.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Heroic Games Launcher (Gamescope)
+Exec=env GDK_BACKEND=wayland gamescope -w 1920 -h 1080 -f -Y -R --RT --force-grab-cursor --prefer-vk-device --adaptive-sync --sharpness 15 -- /opt/heroic/heroic --ozone-platform=x11 --enable-features=UseOzonePlatform,WaylandWindowDecorations
+Terminal=false
+Type=Application
+Icon=heroic
+StartupWMClass=Heroic
+Comment=An Open Source GOG and Epic Games launcher
+Comment[de]=Ein Open Source Spielelauncher for GOG und Epic Games
+MimeType=x-scheme-handler/heroic;
+Categories=Game;
\ No newline at end of file
diff --git a/games-util/HeroicGamesLauncher-bin/metadata.xml b/games-util/HeroicGamesLauncher-bin/metadata.xml
index 27a574a1f..9710ed5ed 100644
--- a/games-util/HeroicGamesLauncher-bin/metadata.xml
+++ b/games-util/HeroicGamesLauncher-bin/metadata.xml
@@ -1,6 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
+ <use>
+ <flag name="gamescope">Efficient micro-compositor for running games</flag>
+ </use>
<upstream>
<remote-id type="github">Heroic-Games-Launcher/HeroicGamesLauncher</remote-id>
</upstream>
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-12 16:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-09 20:33 [gentoo-commits] repo/proj/guru:dev commit in: games-util/HeroicGamesLauncher-bin/files/, games-util/HeroicGamesLauncher-bin/ Gonçalo Negrier Duarte
-- strict thread matches above, loose matches on Subject: below --
2023-07-12 16:42 Gonçalo Negrier Duarte
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox