diff options
Diffstat (limited to 'games-action/ATLauncher/ATLauncher-3.3.4.4.ebuild')
-rw-r--r-- | games-action/ATLauncher/ATLauncher-3.3.4.4.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/games-action/ATLauncher/ATLauncher-3.3.4.4.ebuild b/games-action/ATLauncher/ATLauncher-3.3.4.4.ebuild new file mode 100644 index 000000000..c8c1763c0 --- /dev/null +++ b/games-action/ATLauncher/ATLauncher-3.3.4.4.ebuild @@ -0,0 +1,45 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop java-pkg-2 xdg + +DESCRIPTION="Minecraft launcher which integrates multiple different ModPacks" +HOMEPAGE="https://atlauncher.com + https://github.com/ATLauncher/ATLauncher" +SRC_URI="https://github.com/ATLauncher/ATLauncher/releases/download/${PV}/${P}.jar + https://raw.githubusercontent.com/ATLauncher/ATLauncher/master/src/main/resources/assets/image/Icon.ico -> ${PN}.ico" + +KEYWORDS="~amd64 ~x86" +LICENSE="GPL-3" +SLOT="0" + +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() { + java-pkg_newjar "${DISTDIR}/${P}.jar" ${P}.jar + + dobin "${FILESDIR}/${PN}" + + newicon -s 256x256 ${PN}-0.png atlauncher.png + newicon -s 128x128 ${PN}-1.png atlauncher.png + newicon -s 64x64 ${PN}-2.png atlauncher.png + newicon -s 48x48 ${PN}-3.png atlauncher.png + newicon -s 32x32 ${PN}-4.png atlauncher.png + newicon -s 16x16 ${PN}-5.png atlauncher.png + make_desktop_entry ${PN} "ATLauncher" atlauncher Game +} |