Skip to content

Commit

Permalink
games-server/minecraft-server: add 1.20.1
Browse files Browse the repository at this point in the history
Signed-off-by: Conrad Kostecki <[email protected]>
  • Loading branch information
ConiKost committed Jun 24, 2023
1 parent 35e57f7 commit c41d60e
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions games-server/minecraft-server/Manifest
Original file line number Diff line number Diff line change
@@ -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
53 changes: 53 additions & 0 deletions games-server/minecraft-server/minecraft-server-1.20.1.ebuild
Original file line number Diff line number Diff line change
@@ -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 [email protected]

readme.gentoo_create_doc
}

pkg_postinst() {
readme.gentoo_print_elog
}

0 comments on commit c41d60e

Please sign in to comment.