commit:     73e7ced784f2ffedc024fa626645ea8830ea0833
Author:     Norbert Norbiros <norbiros <AT> protonmail <DOT> com>
AuthorDate: Fri Mar 13 07:55:28 2026 +0000
Commit:     Norbert Szeremet <norbiros <AT> protonmail <DOT> com>
CommitDate: Fri Mar 13 07:55:28 2026 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=73e7ced7

games-util/modrinth-app-bin: add 0.12.2

Signed-off-by: Norbert Norbiros <norbiros <AT> protonmail.com>

 games-util/modrinth-app-bin/Manifest               |  1 +
 .../modrinth-app-bin-0.12.2.ebuild                 | 80 ++++++++++++++++++++++
 2 files changed, 81 insertions(+)

diff --git a/games-util/modrinth-app-bin/Manifest 
b/games-util/modrinth-app-bin/Manifest
index d0e5cb2d04..4bd0e91553 100644
--- a/games-util/modrinth-app-bin/Manifest
+++ b/games-util/modrinth-app-bin/Manifest
@@ -1 +1,2 @@
 DIST Modrinth%20App_0.10.27_amd64.deb 12272880 BLAKE2B 
18e7d2c1715d6f6119ce12bbdd3be61bb3dea20e91e9e9ccb47e5d1ac21d24c1923d1206172ebfb1e21d792f0b859a3f553b0fcd06f5cb3e8908de447a11c8c4
 SHA512 
bedd71122207929bc0d038e8b68f78e8b96b4bd7c3c811110e14ac8699677acc374bf2dbe23e7f65f707bb481153c787182032835ce4a8ea1da81041ba6f1d84
+DIST Modrinth%20App_0.12.2_amd64.deb 12647364 BLAKE2B 
14cae1b66f80fa727b78083a0cda0ebeb33fc66ed082cac7d77763a4f46f984fdb44069420fccda6251d5319a17fa74f9cbc9f10b3d1bffda089bc3625cb3aa1
 SHA512 
0f01954b3296f7102a6a06491c873bccd10826e9b88bf6c3b6e1d104e49ec0ecd2b53dc179e0ee22dd50c140bf103579bc94a091629fabf568740660132bd076

diff --git a/games-util/modrinth-app-bin/modrinth-app-bin-0.12.2.ebuild 
b/games-util/modrinth-app-bin/modrinth-app-bin-0.12.2.ebuild
new file mode 100644
index 0000000000..ecfa0484f4
--- /dev/null
+++ b/games-util/modrinth-app-bin/modrinth-app-bin-0.12.2.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit unpacker desktop xdg-utils
+
+DESCRIPTION="A unique, open source launcher that allows you to play your 
favorite Minecraft mods, and keep them up to date, all in one neat little 
package."
+HOMEPAGE="https://modrinth.com/app";
+SRC_URI="https://launcher-files.modrinth.com/versions/${PV}/linux/Modrinth%20App_${PV}_amd64.deb";
+
+S="${WORKDIR}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# Tauri deps
+RDEPEND="
+       sys-apps/dbus
+       dev-libs/openssl
+       net-libs/webkit-gtk:4.1
+       x11-libs/gtk+:3
+       net-libs/libsoup
+       gnome-base/librsvg
+       dev-libs/glib
+       x11-libs/cairo
+       x11-libs/gdk-pixbuf
+"
+# Minecraft deps
+RDEPEND+="
+       x11-libs/libX11
+       media-libs/libpulse
+       x11-libs/libXxf86vm
+"
+BDEPEND="app-arch/unzip"
+
+QA_PREBUILT=".*"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-desktop.patch"
+)
+
+src_unpack() {
+       unpack_deb ${A}
+}
+
+src_prepare() {
+       mv "${S}/usr/share/applications/Modrinth App.desktop"\
+               "${S}/usr/share/applications/${PN}.desktop"
+
+       default
+
+       mv "${S}/usr/bin/ModrinthApp" "${S}/usr/bin/${PN}" || die
+}
+
+src_install() {
+       ICONDIR="usr/share/icons/hicolor"
+       DESTDIR="/opt/${PN}"
+
+       doicon -s 128 "${ICONDIR}/128x128/apps/ModrinthApp.png"
+       doicon -s 256 "${ICONDIR}/256x256@2/apps/ModrinthApp.png"
+
+       domenu "${S}/usr/share/applications/${PN}.desktop"
+
+       dodir /opt/${PN}
+
+       exeinto "${DESTDIR}"
+       doexe "${S}/usr/bin/${PN}"
+}
+
+pkg_postinst() {
+       xdg_icon_cache_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+       xdg_desktop_database_update
+}

Reply via email to