diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2023-09-22 21:42:24 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2023-09-22 21:51:25 +0200 |
commit | 2f9ddb299aeec8971d9e6c42f5bd57e42f440e85 (patch) | |
tree | 2cabf3b4fa78fd317c40f35fafe9d192e7104bf3 /games-server | |
parent | dev-util/cmake: fix pkg_* from USE=gui rename (diff) | |
download | gentoo-2f9ddb299aeec8971d9e6c42f5bd57e42f440e85.tar.gz gentoo-2f9ddb299aeec8971d9e6c42f5bd57e42f440e85.tar.bz2 gentoo-2f9ddb299aeec8971d9e6c42f5bd57e42f440e85.zip |
games-server/minecraft-server: add 1.20.2
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'games-server')
-rw-r--r-- | games-server/minecraft-server/Manifest | 1 | ||||
-rw-r--r-- | games-server/minecraft-server/minecraft-server-1.20.2.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/games-server/minecraft-server/Manifest b/games-server/minecraft-server/Manifest index ebccf2b563f3..42667fdb78a7 100644 --- a/games-server/minecraft-server/Manifest +++ b/games-server/minecraft-server/Manifest @@ -1 +1,2 @@ DIST minecraft-server-1.20.1.jar 47791053 BLAKE2B b795d4f213fb8f8d09628791da57dc31fd4eaeae892e1162fbc93ec0e45b016eaf2b32962fb3b553ce4e311617ff8d9f075784846a0407c8a4e44c4c6ee051ec SHA512 363772bbf92f36f8eee41b3e6caf6cb2259bc3dbf9ba0bfe26bb68658cc7a3725d934b321904dce4a98a5a0b5ccef7c7735717ce77e9c5526278c6e4faf8df43 +DIST minecraft-server-1.20.2.jar 48285806 BLAKE2B 97c913d1623b14d6644cc64debd2ed0a58887ae90b867140f900df6170d72b473b6eed291eedf7c7af560a6dde0e7b2b3c4dbfbf218cec0f4f7f4b35d49d43cb SHA512 b181ef7cfd1d3cf1d45cef617a800b2fa131262b0fd268dff5e5f27cff08bba95b6454df2a32748ee41b94ec96eb797e0cdf1bcc74d8d60f6f2142c89f21063f diff --git a/games-server/minecraft-server/minecraft-server-1.20.2.ebuild b/games-server/minecraft-server/minecraft-server-1.20.2.ebuild new file mode 100644 index 000000000000..2cba5bf86a8e --- /dev/null +++ b/games-server/minecraft-server/minecraft-server-1.20.2.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="5b868151bd02b41319f54c8d4061b8cae84e665c" +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 +} |