aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2024-02-23 13:51:10 -0500
committerCara Salter <cara@devcara.com>2024-02-23 13:51:10 -0500
commit8114cf2862e345ba6edfacaf1ff445c2ae6bc19f (patch)
tree4800c1295be977a4c64a217fa8fddd2aa5cbd3e8 /games-action
parentmedia-sound/TauonMusicBox: add missing build dep (diff)
downloadguru-8114cf2862e345ba6edfacaf1ff445c2ae6bc19f.tar.gz
guru-8114cf2862e345ba6edfacaf1ff445c2ae6bc19f.tar.bz2
guru-8114cf2862e345ba6edfacaf1ff445c2ae6bc19f.zip
games-action/technic-launcher: add 4.822
Bug: https://bugs.gentoo.org/848825 Signed-off-by: Cara Salter <cara@devcara.com>
Diffstat (limited to 'games-action')
-rw-r--r--games-action/technic-launcher/Manifest1
-rw-r--r--games-action/technic-launcher/technic-launcher-4.822.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/games-action/technic-launcher/Manifest b/games-action/technic-launcher/Manifest
index d069980ad..316a0ca1c 100644
--- a/games-action/technic-launcher/Manifest
+++ b/games-action/technic-launcher/Manifest
@@ -1,3 +1,4 @@
DIST technic-launcher-4.625.jar 5394348 BLAKE2B 46306f86a4b80aa70276ccc8fbd3f88c036bdd5e67a3b9a6b0444a9ec22d86113082d279ad9d78313e5753e9458ba7c52a7e507eb4b625c2b6d2662c5e5fdb10 SHA512 29cca87c55c3415fa3dde40030b09db75dc00387e87f2432a44d7acde1e1544ebf7f55a12d46d084c2f207be7882ee13bd6f50af3da0046b02d64077c35a24c4
DIST technic-launcher-4.768.jar 6949323 BLAKE2B b5e2006b82f0efee9c872c513436c8ab68ad87473a001b1baf25393be5a1c26ffee1d0783dd87218c1e38978d6934c610019cc80e68401bc978a1834b19b8741 SHA512 d96cda057e746dced1bcc7635ace43a9eb65ed71a28e7af3f0b184162cb365aa101e4bb90880da679b52a9f5b828d27cf81b3cb729ccda4b02837bc638876753
+DIST technic-launcher-4.822.jar 7170316 BLAKE2B ab222361a511c66d23dda052b17b00b4ba5068d229e1dcb0720976998712dc82c92831135fea700be671459f304f3bf29907defee1cd3ac8b5985eff80d37156 SHA512 9ffbd23c4ff26f3a1d0a198fd404a811a8326eb04cafa900c1627abd6c191e089ac758500dbb10c747c68daedfcfd91399bebabfaa6e73d9fa76372b8d73ab45
DIST technic-launcher.ico 15086 BLAKE2B 4f5be0661bfbdca971cf022767618acef1e912b60c3f0574f383a8bd0281a6d66ca1b8b105412ec9579f3999514a471412fb16da66d937acfb4d3236b8f99663 SHA512 c109113a0e1be10bc013bfb79b742396a768fa683860a83d734e158b709e66b9e21067e1791ae5f7a854ccd21b1bf9adf6eeb27bc33d9da03f902dfe5d8be710
diff --git a/games-action/technic-launcher/technic-launcher-4.822.ebuild b/games-action/technic-launcher/technic-launcher-4.822.ebuild
new file mode 100644
index 000000000..cacf1614e
--- /dev/null
+++ b/games-action/technic-launcher/technic-launcher-4.822.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop java-pkg-2 xdg
+
+DESCRIPTION="Minecraft launcher for community-made modpacks on the Technic Platform"
+HOMEPAGE="https://www.technicpack.net/"
+SRC_URI="
+ https://launcher.technicpack.net/launcher${PV:0:1}/${PV:2}/TechnicLauncher.jar -> ${P}.jar
+ https://www.technicpack.net/favicon.ico -> ${PN}.ico
+"
+
+KEYWORDS="~amd64 ~x86"
+LICENSE="technic"
+SLOT="0"
+
+RESTRICT="bindist mirror"
+
+BDEPEND="media-gfx/imagemagick[png]"
+
+RDEPEND="virtual/jre:1.8"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ # do not unpack jar file
+ cp "${DISTDIR}/${PN}.ico" "${S}" || die
+}
+
+src_compile() {
+ convert ${PN}.ico ${PN}.png || die
+}
+
+src_install() {
+ java-pkg_newjar "${DISTDIR}/${P}.jar" ${PN}.jar
+ java-pkg_dolauncher ${PN} --jar ${PN}.jar --java_args "\${JAVA_OPTS}"
+
+ newicon -s 16x16 ${PN}-0.png technic.png
+ newicon -s 32x32 ${PN}-1.png technic.png
+ newicon -s 48x48 ${PN}-2.png technic.png
+ make_desktop_entry ${PN} "Technic Launcher" technic Game
+}