commit: 30015ad02ec6884aada1d544531ad79ec4285aaf Author: Alexander Weber <web.alexander <AT> web <DOT> de> AuthorDate: Tue Feb 20 08:09:58 2024 +0000 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me> CommitDate: Tue Feb 20 08:09:58 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=30015ad0
add games-util/pegasus games launcher Signed-off-by: Alexander Weber <web.alexander <AT> web.de> games-util/pegasus/pegasus-9999.ebuild | 48 ++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/games-util/pegasus/pegasus-9999.ebuild b/games-util/pegasus/pegasus-9999.ebuild new file mode 100644 index 0000000000..ccda2e7fd8 --- /dev/null +++ b/games-util/pegasus/pegasus-9999.ebuild @@ -0,0 +1,48 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v3 + +EAPI=8 + +DESCRIPTION="Graphical frontend for browsing your game library" +HOMEPAGE="https://pegasus-frontend.org/" + +EGIT_REPO_URI="https://github.com/mmatyas/pegasus-frontend" +EGIT_BRANCH="master" +inherit git-r3 qmake-utils xdg + +LICENSE="GPL-3" +SLOT="0" + +RDEPEND=" +>dev-qt/qtmultimedia-5.15:5[qml] +>dev-qt/qtquickcontrols2-5.15:5 +>dev-qt/qtsvg-5.15:5 +>dev-qt/qtsql-5.15:5[sqlite] +>dev-qt/linguist-tools-5.15:5 +media-libs/libpng +media-libs/libsdl2 +" + +DEPEND="$RDEPEND" + +src_prepare() { + # Patch desktop file to final path + sed -i 's:$${INSTALL_BINDIR}:/usr/bin:g' "${S}"/src/app/platform/linux/org.pegasus_frontend.Pegasus.desktop.qmake.in + eapply_user +} + +src_configure() { + eqmake5 USE_SDL_GAMEPAD=1 USE_SDL_POWER=1 \ + INSTALL_BINDIR="${D}/usr/bin" \ + INSTALL_DOCDIR="${D}/usr/share/doc/${PF}" \ + INSTALL_DESKTOPDIR="${D}/usr/share/applications" \ + INSTALL_ICONDIR="${D}/usr/share/icons" +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +}
