summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-12-10 14:22:27 +0100
committerConrad Kostecki <conikost@gentoo.org>2022-12-10 14:26:47 +0100
commita818144d4bde2efe5be6933d9a143f384311e701 (patch)
treea12fd8381cafb0553c97271cd06999ef39dda261 /games-server
parentdev-libs/libmodbus: add 3.1.10 (diff)
downloadgentoo-a818144d4bde2efe5be6933d9a143f384311e701.tar.gz
gentoo-a818144d4bde2efe5be6933d9a143f384311e701.tar.bz2
gentoo-a818144d4bde2efe5be6933d9a143f384311e701.zip
games-server/minecraft-server: add 1.19.3
Signed-off-by: Conrad Kostecki <conikost@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.19.3.ebuild53
2 files changed, 54 insertions, 0 deletions
diff --git a/games-server/minecraft-server/Manifest b/games-server/minecraft-server/Manifest
index 6b27a72bdeea..29496020acef 100644
--- a/games-server/minecraft-server/Manifest
+++ b/games-server/minecraft-server/Manifest
@@ -1 +1,2 @@
DIST minecraft-server-1.19.2.jar 45609512 BLAKE2B bf754085c86903e601e529651c2442ae933cbb53582e7fc917d21f454f49a2c5fa66a75e24736ab5c9e4c24e5172dfa9780c7f16b2d801cd36bbb0e3f4f088ba SHA512 4af9474416abd22ccfe42a230b7ffff6a1fb82cdc7aa5994f6788223ab12149a26bcf76443752e7ce8c2fc3fef0535f704bdba786a95210fb4bac1b45b72a8c9
+DIST minecraft-server-1.19.3.jar 47162712 BLAKE2B 549678fc5c110b42b444b565142b299f13efaf2fb4f148e2f050f1f9701f0e81870ba777f021dfcd1d494cfacbb9e8dac5ede62b5315a93b367f55ac2c582d94 SHA512 1a3b9930df515cb8b8be9a212c2b3b6bb4612968aca5f5bb00a15eb70bff126bf96f51aa5c6661fae0b16eef629843103c6ae73cf6f2c8030314b82d2a03a189
diff --git a/games-server/minecraft-server/minecraft-server-1.19.3.ebuild b/games-server/minecraft-server/minecraft-server-1.19.3.ebuild
new file mode 100644
index 000000000000..9382c84edd5a
--- /dev/null
+++ b/games-server/minecraft-server/minecraft-server-1.19.3.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+EGIT_COMMIT="c9df48efed58511cdd0213c56b9013a7b5c9ac1f"
+README_GENTOO_SUFFIX="-r1"
+
+inherit readme.gentoo-r1 java-pkg-2 systemd
+
+DESCRIPTION="The official server for the sandbox video game"
+HOMEPAGE="https://www.minecraft.net/"
+SRC_URI="https://launcher.mojang.com/v1/objects/${EGIT_COMMIT}/server.jar -> ${P}.jar"
+S="${WORKDIR}"
+
+LICENSE="Mojang"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+RESTRICT="bindist mirror"
+
+RDEPEND="
+ acct-group/minecraft
+ acct-user/minecraft
+ app-misc/dtach
+ || (
+ dev-java/openjdk:17
+ dev-java/openjdk-bin:17
+ )
+"
+
+src_unpack() {
+ cp "${DISTDIR}/${A}" "${WORKDIR}" || die
+}
+
+src_compile() {
+ :;
+}
+
+src_install() {
+ newbin "${FILESDIR}"/minecraft-server-bin minecraft-server
+
+ java-pkg_newjar minecraft-server-${PV}.jar minecraft-server.jar
+
+ newinitd "${FILESDIR}"/minecraft-server.initd-r5 minecraft-server
+ newconfd "${FILESDIR}"/minecraft-server.confd-r1 minecraft-server
+ systemd_newunit "${FILESDIR}"/minecraft-server.service minecraft-server@.service
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}