mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
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>
This commit is contained in:
2
games-action/technic-launcher/Manifest
Normal file
2
games-action/technic-launcher/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST technic-launcher-4.510.jar 5541495 BLAKE2B 249b553abc7cffd0c823fa09801dc16cb0ae94b0a8179dcbc1cdb043d5fc3a459034c9c26de96e8fca171cacdced57b5059b4845db041091c30ebfe8df7a0aca SHA512 5219ebf0faa41cc3d5c4444cd561f69dd6215eb1bc1d2c99c5b693b419c8085544902c7df960cc07ddedff7f14aa58f71a840cae07fae912f4a96761afc32466
|
||||
DIST technic-launcher.ico 15086 BLAKE2B 4f5be0661bfbdca971cf022767618acef1e912b60c3f0574f383a8bd0281a6d66ca1b8b105412ec9579f3999514a471412fb16da66d937acfb4d3236b8f99663 SHA512 c109113a0e1be10bc013bfb79b742396a768fa683860a83d734e158b709e66b9e21067e1791ae5f7a854ccd21b1bf9adf6eeb27bc33d9da03f902dfe5d8be710
|
||||
4
games-action/technic-launcher/files/technic-launcher
Normal file
4
games-action/technic-launcher/files/technic-launcher
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
java -jar /opt/technic-launcher/technic-launcher.jar
|
||||
|
||||
8
games-action/technic-launcher/metadata.xml
Normal file
8
games-action/technic-launcher/metadata.xml
Normal file
@@ -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>
|
||||
47
games-action/technic-launcher/technic-launcher-4.510.ebuild
Normal file
47
games-action/technic-launcher/technic-launcher-4.510.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user