mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
games-util/modrinth-app-bin: add 0.12.5
Signed-off-by: Norbert Norbiros <norbiros@protonmail.com>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
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
|
||||
|
||||
80
games-util/modrinth-app-bin/modrinth-app-bin-0.12.5.ebuild
Normal file
80
games-util/modrinth-app-bin/modrinth-app-bin-0.12.5.ebuild
Normal 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="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
|
||||
}
|
||||
Reference in New Issue
Block a user