summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conrad@kostecki.com>2018-10-28 16:38:50 +0100
committerMichał Górny <mgorny@gentoo.org>2018-11-03 10:41:36 +0100
commitef47def66eebff5bf657bb087c2e2e492c4de2d5 (patch)
tree3714b676665c3203c98cfdbd260eb0e5ed8e37a7 /games-server
parentsys-apps/ethq: version bump to 0.6.1 (diff)
downloadgentoo-ef47def66eebff5bf657bb087c2e2e492c4de2d5.tar.gz
gentoo-ef47def66eebff5bf657bb087c2e2e492c4de2d5.tar.bz2
gentoo-ef47def66eebff5bf657bb087c2e2e492c4de2d5.zip
games-server/minecraft-server: bump to version 1.13.2
Closes: https://bugs.gentoo.org/669874 Signed-off-by: Conrad Kostecki <conrad@kostecki.com> Package-Manager: Portage-2.3.51, Repoman-2.3.11 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'games-server')
-rw-r--r--games-server/minecraft-server/Manifest1
-rw-r--r--games-server/minecraft-server/minecraft-server-1.13.2.ebuild57
2 files changed, 58 insertions, 0 deletions
diff --git a/games-server/minecraft-server/Manifest b/games-server/minecraft-server/Manifest
index 08ef8c13b11a..8eb690accfd6 100644
--- a/games-server/minecraft-server/Manifest
+++ b/games-server/minecraft-server/Manifest
@@ -1 +1,2 @@
DIST minecraft-server-1.13.1.jar 33832589 BLAKE2B 87f3d1bc0650db52c5053ca58785827b30c845fac42f37a98b463ede8341307a881cb06b9a9f3656c0258fdffa88ab9dd41fe28be51263369f24397d50ea2b79 SHA512 a82805cc0b6ea0c3481405eef1910549623db9b025ff78d228ef9c767950b34d1e8c30452f2f6f9ec22a53445a8dd64ebaec7c13cee1a9eac63bfc80725fcc44
+DIST minecraft-server-1.13.2.jar 33835116 BLAKE2B 4d92068d51555ab44a2efcdbb1676ef34a7085e4d666a7915c4c5a3d1f9502536df4bf67909d27b7b94cb8ebb483dc55f935f21930d4bc454645ed44ef8e6ed8 SHA512 c9a98f1d224519369d6c4882cfe93a94983661c0c0b8a7f0b2f271af752fde5693025b684a01665992b3c70b37ac891ce1747f062bd86354777c416219629b64
diff --git a/games-server/minecraft-server/minecraft-server-1.13.2.ebuild b/games-server/minecraft-server/minecraft-server-1.13.2.ebuild
new file mode 100644
index 000000000000..2b513846396c
--- /dev/null
+++ b/games-server/minecraft-server/minecraft-server-1.13.2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+MY_PV="3737db93722a9e39eeada7c27e7aca28b144ffa7"
+
+inherit readme.gentoo-r1 java-pkg-2 user
+
+DESCRIPTION="The official server for the sandbox video game"
+HOMEPAGE="https://www.minecraft.net/"
+SRC_URI="https://launcher.mojang.com/v1/objects/${MY_PV}/server.jar -> ${P}.jar"
+
+LICENSE="Mojang"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ app-misc/screen
+ >=virtual/jre-1.8
+"
+
+RESTRICT="bindist mirror strip"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ enewgroup minecraft
+ enewuser minecraft -1 -1 /var/lib/minecraft-server minecraft
+}
+
+src_unpack() {
+ # Don't unpack that jar, just copy it to WORKDIR
+ cp "${DISTDIR}"/${A} "${WORKDIR}" || die
+}
+
+src_compile() {
+ :;
+}
+
+src_install() {
+ java-pkg_newjar minecraft-server-${PV}.jar minecraft-server.jar
+ java-pkg_dolauncher minecraft-server --jar minecraft-server.jar --java_args "\${JAVA_OPTS}"
+
+ newinitd "${FILESDIR}"/minecraft-server.initd-r2 minecraft-server
+ newconfd "${FILESDIR}"/minecraft-server.confd minecraft-server
+
+ diropts -o minecraft -g minecraft
+ keepdir /var/lib/minecraft-server
+ keepdir /var/log/minecraft-server
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}