games-action/minecraft-launcher: New ebuild
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr
This commit is contained in:
parent
a71d9dfbad
commit
5db3d3e7d6
4
games-action/minecraft-launcher/Manifest
Normal file
4
games-action/minecraft-launcher/Manifest
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
DIST minecraft-launcher-1.6.93.jar 4481683 BLAKE2B 29597977cc70f831bff7f77cb2493d8c8f8138518c79f5e92f91ed6440ae2224b4140546c37645370173c668d9db894ca6b548b6cfd41da40c4e1ff51f0d820b SHA512 85739c0c0828af5b901b9933173f08229175aef1e8dec40c83981fb6fc330285b4c3a206cdf4405408106eff56ce1e516368d18bf44f631446ebac45e9aba125
|
||||||
|
DIST minecraft-launcher-2.1.13829.tar.gz 90711753 BLAKE2B 7067d93fe4f3460722e822c2afb114ed7d97be1d2c617c60e4cb42ab15ade8f752b7ca506573cb09ba50e403922bf48476584ee310c34a70e3ac267b4c402c00 SHA512 151140d2973d69b5567bd3f7b63c3c03a41dae0e9c7fab3e0d8ab72de3d3533ee708f69aa01089c4faaf18d0b76f534ad79c328d802fc485197db2097df04d4f
|
||||||
|
DIST minecraft-launcher-legacy.svg 61803 BLAKE2B 6527c869aec955f5e457e57f6c60b6391c29f2bc6f83d72b9a432cc9b77df6fb842549158f38e32a0bec6973d6fac4af3a1a5562cb84b5a4fd1d95de645da842 SHA512 aa08e8fa2a5c1c3e2d714644cb9648adb779c09fff5a9e5b79cea42c53be3f53631d199f72c1eec56e4b4f8e46be8f4ae88fbe456865621b589a7c4f9438549a
|
||||||
|
DIST minecraft-launcher.svg 61803 BLAKE2B 6527c869aec955f5e457e57f6c60b6391c29f2bc6f83d72b9a432cc9b77df6fb842549158f38e32a0bec6973d6fac4af3a1a5562cb84b5a4fd1d95de645da842 SHA512 aa08e8fa2a5c1c3e2d714644cb9648adb779c09fff5a9e5b79cea42c53be3f53631d199f72c1eec56e4b4f8e46be8f4ae88fbe456865621b589a7c4f9438549a
|
8
games-action/minecraft-launcher/metadata.xml
Normal file
8
games-action/minecraft-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>
|
|
@ -0,0 +1,34 @@
|
||||||
|
# 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="An open-world game whose gameplay revolves around breaking and placing blocks"
|
||||||
|
HOMEPAGE="https://www.minecraft.net/"
|
||||||
|
SRC_URI="https://launcher.mojang.com/v1/objects/eabbff5ff8e21250e33670924a0c5e38f47c840b/launcher.jar -> ${P}.jar
|
||||||
|
https://launcher.mojang.com/download/minecraft-launcher.svg -> ${PN}-legacy.svg"
|
||||||
|
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
LICENSE="Mojang"
|
||||||
|
SLOT="1"
|
||||||
|
|
||||||
|
RESTRICT="bindist mirror"
|
||||||
|
|
||||||
|
RDEPEND="virtual/jre:1.8"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
# do not unpack jar file
|
||||||
|
true
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
java-pkg_newjar "${DISTDIR}/${P}.jar" ${P}-legacy.jar
|
||||||
|
java-pkg_dolauncher ${PN}-legacy --jar ${P}-legacy.jar --java_args "\${JAVA_OPTS}"
|
||||||
|
|
||||||
|
doicon -s scalable "${DISTDIR}/${PN}-legacy.svg"
|
||||||
|
make_desktop_entry ${PN}-legacy "Minecraft (legacy)" ${PN}-legacy Game
|
||||||
|
}
|
|
@ -0,0 +1,53 @@
|
||||||
|
# Copyright 2019-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit desktop xdg
|
||||||
|
|
||||||
|
DESCRIPTION="An open-world game whose gameplay revolves around breaking and placing blocks"
|
||||||
|
HOMEPAGE="https://www.minecraft.net/"
|
||||||
|
SRC_URI="https://launcher.mojang.com/download/linux/x86_64/minecraft-launcher_${PV}.tar.gz -> ${P}.tar.gz
|
||||||
|
https://launcher.mojang.com/download/minecraft-launcher.svg"
|
||||||
|
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
LICENSE="Mojang"
|
||||||
|
SLOT="2"
|
||||||
|
|
||||||
|
RESTRICT="bindist mirror"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=x11-libs/gtk+-2.24.32-r1
|
||||||
|
dev-libs/nss
|
||||||
|
gnome-base/gconf
|
||||||
|
media-libs/openal
|
||||||
|
sys-apps/dbus
|
||||||
|
virtual/jre:1.8
|
||||||
|
virtual/opengl
|
||||||
|
x11-apps/xrandr
|
||||||
|
x11-libs/libXScrnSaver
|
||||||
|
x11-libs/libXcomposite
|
||||||
|
x11-libs/libXcursor
|
||||||
|
x11-libs/libXdamage
|
||||||
|
x11-libs/libXext
|
||||||
|
x11-libs/libXfixes
|
||||||
|
x11-libs/libXi
|
||||||
|
x11-libs/libXrender
|
||||||
|
x11-libs/libXtst
|
||||||
|
x11-libs/xcb-util
|
||||||
|
"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dodir /opt/${PN}
|
||||||
|
insinto /opt/${PN}/
|
||||||
|
doins -r .
|
||||||
|
|
||||||
|
fperms +x /opt/${PN}/${PN}
|
||||||
|
|
||||||
|
dosym ../${PN}/${PN} /opt/bin/${PN}
|
||||||
|
|
||||||
|
doicon -s scalable "${DISTDIR}/${PN}.svg"
|
||||||
|
make_desktop_entry ${PN} "Minecraft" ${PN} Game
|
||||||
|
}
|
Loading…
Reference in a new issue