summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2023-06-23 23:56:51 +0200
committerConrad Kostecki <conikost@gentoo.org>2023-06-24 23:35:41 +0200
commitc41d60e1143e966210e1b930f2cb7a74ced7e5f9 (patch)
tree39add3c0775de5dd628bf32b9aa1b43ccf890456 /games-server
parentgames-server/bedrock-server: drop 1.19.83.01, 1.20.0.01 (diff)
downloadgentoo-c41d60e1143e966210e1b930f2cb7a74ced7e5f9.tar.gz
gentoo-c41d60e1143e966210e1b930f2cb7a74ced7e5f9.tar.bz2
gentoo-c41d60e1143e966210e1b930f2cb7a74ced7e5f9.zip
games-server/minecraft-server: add 1.20.1
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.20.1.ebuild53
2 files changed, 54 insertions, 0 deletions
diff --git a/games-server/minecraft-server/Manifest b/games-server/minecraft-server/Manifest
index ee3d2da1d07a..ea6f9b70816d 100644
--- a/games-server/minecraft-server/Manifest
+++ b/games-server/minecraft-server/Manifest
@@ -1,2 +1,3 @@
DIST minecraft-server-1.19.4.jar 47515675 BLAKE2B ab4f65ce8e08ea790d3ef4e291dd1eadad0931bd5cf39771ed6571089c556cb85786987c0f9e22c2aaf4b000400a674c85bf157382c6840cd65fcaa33ada70b8 SHA512 a4233e35aca4ade4b2d7b8047c990d40ef81e832ef693b583a08b963ad9358c0abe3ccca656848ba649aaeded2a37ac585099bee24036a8abb1e7541eb91e96e
+DIST minecraft-server-1.20.1.jar 47791053 BLAKE2B b795d4f213fb8f8d09628791da57dc31fd4eaeae892e1162fbc93ec0e45b016eaf2b32962fb3b553ce4e311617ff8d9f075784846a0407c8a4e44c4c6ee051ec SHA512 363772bbf92f36f8eee41b3e6caf6cb2259bc3dbf9ba0bfe26bb68658cc7a3725d934b321904dce4a98a5a0b5ccef7c7735717ce77e9c5526278c6e4faf8df43
DIST minecraft-server-1.20.jar 47787288 BLAKE2B 396deea2ec2d1a144406cac63ef46aca50537f8c76244c44928623a5c4e0287a944406b312f18034742761f20c73820c9bf6fa3a702ab45afac35299059f6169 SHA512 5995ee6652c4b6667bdf9d6e4d80669002f7d59e274eab681e00929c38cfe447cd6e49fa3993feefabb18c3230ac92a6fa93aad4d907f6a576295333fbe84042
diff --git a/games-server/minecraft-server/minecraft-server-1.20.1.ebuild b/games-server/minecraft-server/minecraft-server-1.20.1.ebuild
new file mode 100644
index 000000000000..ea1cc3bd4b7f
--- /dev/null
+++ b/games-server/minecraft-server/minecraft-server-1.20.1.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="84194a2f286ef7c14ed7ce0090dba59902951553"
+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
+}