summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-02-09 21:51:48 +0100
committerConrad Kostecki <conikost@gentoo.org>2022-02-09 23:56:06 +0100
commitff3e0152b4749bc462f5f73babb5398293971e44 (patch)
tree23c84418298b7e0ddf7cf9b34e05bb6031499cd3 /games-server
parentgames-fps/eduke32: add 20220204.9957 (diff)
downloadgentoo-ff3e0152b4749bc462f5f73babb5398293971e44.tar.gz
gentoo-ff3e0152b4749bc462f5f73babb5398293971e44.tar.bz2
gentoo-ff3e0152b4749bc462f5f73babb5398293971e44.zip
games-server/minecraft-server: update EAPI 7 -> 8
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'games-server')
-rw-r--r--games-server/minecraft-server/minecraft-server-1.18.1-r1.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/games-server/minecraft-server/minecraft-server-1.18.1-r1.ebuild b/games-server/minecraft-server/minecraft-server-1.18.1-r1.ebuild
new file mode 100644
index 000000000000..a9362890fc5e
--- /dev/null
+++ b/games-server/minecraft-server/minecraft-server-1.18.1-r1.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="125e5adf40c659fd3bce3e66e67a16bb49ecc1b9"
+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
+}