mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 05:53:12 -04:00
games-util/modrinth-app-bin: add 0.9.4
Signed-off-by: Norbert Norbiros <norbiros@protonmail.com>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST Modrinth%20App_0.9.2_amd64.deb 8162736 BLAKE2B 0e5bc56252e2598d5f57e601e7e90cb36d11232d6e78d1271184e0440029241b3ab4945ec83091e64bc31531bd2aedeb096d912cd3c4303e7d58374ec9917c80 SHA512 40445540e071675af23384e55892b659f66da3d9400d8f7d624de2cf9424227dea4ce821a2b843a23d37238908d864ba005668d5a00175a11f30409b384995c2
|
||||
DIST Modrinth%20App_0.9.3_amd64.deb 8190526 BLAKE2B 1566944fc06b296904daf65f2d60fc2338bb87664015209fef18dfbcc4ba2a8d722bd985cb1f44e567a933842b19501cb493dd5dbe020d8d3ab2b55daf037931 SHA512 cf7bebd7fc9f554105636db62e09acbc5e1efe583a5158b222fa4c1582cf573c761ea25df873c491b08e6e103b4cbd692a3e00905061b8745aa40d784d2911e8
|
||||
DIST Modrinth%20App_0.9.4_amd64.deb 8722182 BLAKE2B ef196e8a6432e4a7dba49a48e3baab85f87f29f8cf40e14f446f3d704314be5f51b629ee0b3404f08af92eee5f0918926a2de7830803e2a853eb5cd9a8469b60 SHA512 f5fa24725d542c53de6f9f52dfe5c57771c7d2bb77d4504a4f51f4455838d3fea74abefde6f3a5550c8ed81090f5b54ed3332e68b78b6a1c3927f405063ca079
|
||||
|
||||
80
games-util/modrinth-app-bin/modrinth-app-bin-0.9.4.ebuild
Normal file
80
games-util/modrinth-app-bin/modrinth-app-bin-0.9.4.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