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

Signed-off-by: Aniela Starzyk <me@sanielia.dev>
This commit is contained in:
Aniela Starzyk
2026-06-11 13:41:15 +02:00
parent 6f3dd67bef
commit ec9e67316b
2 changed files with 81 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
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
DIST Modrinth%20App_0.12.5_amd64.deb 15075110 BLAKE2B fa6d1bc0317886d10896a02fdb73ca85b2967796958a7ef35889cdc6ed618a78f28bfa042b468c4ce39ef1a44cb13f93f03c1379f7351ffaedf09365a0d45912 SHA512 e90c69da7faf8a787bad60391c3e98a4b524a8ad3c3ceeb3d62503814916bc3781b3381be64a04cd9eb6ec944cd09aaa59b8b2f6d44b888a4a24f34a870085b4
DIST Modrinth%20App_0.14.5_amd64.deb 17760574 BLAKE2B 953e78ef1126c290c4ac25c72ae185c06f42b71551006e5ed4c59b67caea53f4ac1517b6aedba3dd0fdda08aa04e8f12c78143a47bab3ab5c6a1a951fdf39b06 SHA512 ede9e41897565467054fbc5761bab6672264e70dc1f493efbae59d712f8ece5253fa7458a731c74fcc442f585e75a89a94a7132e5e815e27813ca2db60d7c85f

View File

@@ -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="Open source launcher letting you play and update your favourite Minecraft mods."
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
}