summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2023-06-08 21:58:41 +0200
committerConrad Kostecki <conikost@gentoo.org>2023-06-08 21:58:41 +0200
commit2d3afc53ebcdd984437a324b5d2e0bc98071defb (patch)
tree7e88faf2e772703a8a702ab087e3fa865fc97743 /games-server/minecraft-server
parentgames-server/bedrock-server: add 1.20.0.01 (diff)
downloadgentoo-2d3afc53ebcdd984437a324b5d2e0bc98071defb.tar.gz
gentoo-2d3afc53ebcdd984437a324b5d2e0bc98071defb.tar.bz2
gentoo-2d3afc53ebcdd984437a324b5d2e0bc98071defb.zip
games-server/minecraft-server: add 1.20
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'games-server/minecraft-server')
-rw-r--r--games-server/minecraft-server/Manifest1
-rw-r--r--games-server/minecraft-server/minecraft-server-1.20.ebuild53
2 files changed, 54 insertions, 0 deletions
diff --git a/games-server/minecraft-server/Manifest b/games-server/minecraft-server/Manifest
index 128778b2097a..ee3d2da1d07a 100644
--- a/games-server/minecraft-server/Manifest
+++ b/games-server/minecraft-server/Manifest
@@ -1 +1,2 @@
DIST minecraft-server-1.19.4.jar 47515675 BLAKE2B ab4f65ce8e08ea790d3ef4e291dd1eadad0931bd5cf39771ed6571089c556cb85786987c0f9e22c2aaf4b000400a674c85bf157382c6840cd65fcaa33ada70b8 SHA512 a4233e35aca4ade4b2d7b8047c990d40ef81e832ef693b583a08b963ad9358c0abe3ccca656848ba649aaeded2a37ac585099bee24036a8abb1e7541eb91e96e
+DIST minecraft-server-1.20.jar 47787288 BLAKE2B 396deea2ec2d1a144406cac63ef46aca50537f8c76244c44928623a5c4e0287a944406b312f18034742761f20c73820c9bf6fa3a702ab45afac35299059f6169 SHA512 5995ee6652c4b6667bdf9d6e4d80669002f7d59e274eab681e00929c38cfe447cd6e49fa3993feefabb18c3230ac92a6fa93aad4d907f6a576295333fbe84042
diff --git a/games-server/minecraft-server/minecraft-server-1.20.ebuild b/games-server/minecraft-server/minecraft-server-1.20.ebuild
new file mode 100644
index 000000000000..6cb763192912
--- /dev/null
+++ b/games-server/minecraft-server/minecraft-server-1.20.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+EGIT_COMMIT="15c777e2cfe0556eef19aab534b186c0c6f277e1"
+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
+}