diff options
author | Andrew Ammerlaan <andrewammerlaan@riseup.net> | 2020-03-25 11:49:18 +0100 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@riseup.net> | 2020-03-25 14:07:49 +0100 |
commit | 7126497a6579fd71beecd27c2f04a0415deebc28 (patch) | |
tree | af4e23cf41478e5a1922f68f65107d92ac21e317 /games-action/technic-launcher | |
parent | games-action/minecraft-launcher: finally decent working ebuilds for minecraft (diff) | |
download | guru-7126497a6579fd71beecd27c2f04a0415deebc28.tar.gz guru-7126497a6579fd71beecd27c2f04a0415deebc28.tar.bz2 guru-7126497a6579fd71beecd27c2f04a0415deebc28.zip |
games-action/technic-launcher: Minecraft launcher for modpacks on Technic
Mirroring is restricted by license
Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
Diffstat (limited to 'games-action/technic-launcher')
-rw-r--r-- | games-action/technic-launcher/Manifest | 2 | ||||
-rw-r--r-- | games-action/technic-launcher/files/technic-launcher | 4 | ||||
-rw-r--r-- | games-action/technic-launcher/metadata.xml | 8 | ||||
-rw-r--r-- | games-action/technic-launcher/technic-launcher-4.510.ebuild | 47 |
4 files changed, 61 insertions, 0 deletions
diff --git a/games-action/technic-launcher/Manifest b/games-action/technic-launcher/Manifest new file mode 100644 index 000000000..f5c1ac602 --- /dev/null +++ b/games-action/technic-launcher/Manifest @@ -0,0 +1,2 @@ +DIST technic-launcher-4.510.jar 5541495 BLAKE2B 249b553abc7cffd0c823fa09801dc16cb0ae94b0a8179dcbc1cdb043d5fc3a459034c9c26de96e8fca171cacdced57b5059b4845db041091c30ebfe8df7a0aca SHA512 5219ebf0faa41cc3d5c4444cd561f69dd6215eb1bc1d2c99c5b693b419c8085544902c7df960cc07ddedff7f14aa58f71a840cae07fae912f4a96761afc32466 +DIST technic-launcher.ico 15086 BLAKE2B 4f5be0661bfbdca971cf022767618acef1e912b60c3f0574f383a8bd0281a6d66ca1b8b105412ec9579f3999514a471412fb16da66d937acfb4d3236b8f99663 SHA512 c109113a0e1be10bc013bfb79b742396a768fa683860a83d734e158b709e66b9e21067e1791ae5f7a854ccd21b1bf9adf6eeb27bc33d9da03f902dfe5d8be710 diff --git a/games-action/technic-launcher/files/technic-launcher b/games-action/technic-launcher/files/technic-launcher new file mode 100644 index 000000000..5d98fac3f --- /dev/null +++ b/games-action/technic-launcher/files/technic-launcher @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +java -jar /opt/technic-launcher/technic-launcher.jar + diff --git a/games-action/technic-launcher/metadata.xml b/games-action/technic-launcher/metadata.xml new file mode 100644 index 000000000..1210e7ebc --- /dev/null +++ b/games-action/technic-launcher/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>andrewammerlaan@riseup.net</email> + <name>Andrew Ammerlaan</name> + </maintainer> +</pkgmetadata> diff --git a/games-action/technic-launcher/technic-launcher-4.510.ebuild b/games-action/technic-launcher/technic-launcher-4.510.ebuild new file mode 100644 index 000000000..1cf3fc772 --- /dev/null +++ b/games-action/technic-launcher/technic-launcher-4.510.ebuild @@ -0,0 +1,47 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop xdg + +DESCRIPTION="Minecraft launcher for community-made modpacks on the Technic Platform" +HOMEPAGE="https://www.technicpack.net/" +SRC_URI="http://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="mirror" + +BDEPEND="media-gfx/imagemagick" + +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() { + dodir /opt/${PN} + insinto /opt/${PN}/ + newins "${DISTDIR}/${P}.jar" ${PN}.jar + + insinto /opt/bin/ + doins "${FILESDIR}/${PN}" + fperms +x /opt/bin/${PN} + + newicon -s 16x16 ${PN}-0.png ${PN}.png + newicon -s 32x32 ${PN}-1.png ${PN}.png + newicon -s 48x48 ${PN}-2.png ${PN}.png + make_desktop_entry ${PN} "Technic Launcher" ${PN} Game +} |