Install this version:
emerge -a =games-action/technic-launcher-4.768
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =games-action/technic-launcher-4.768
Or alternatively:
emerge --autounmask-write -a =games-action/technic-launcher-4.768
# 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
"
S="${WORKDIR}"
LICENSE="technic"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="bindist mirror"
BDEPEND="media-gfx/imagemagick[png]"
RDEPEND="virtual/jre:1.8"
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
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | technic-launcher-4.768.jar | 6949323 bytes | https://launcher.technicpack.net/launcher4/768/TechnicLauncher.jar |
| DIST | technic-launcher.ico | 15086 bytes | https://www.technicpack.net/favicon.ico |