blob: 8b3bf146f776daba0784bcd84a2ebae23e92d992 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="The official bedrock (non-java) based server for the sandbox video game"
HOMEPAGE="https://www.minecraft.net/"
SRC_URI="https://minecraft.azureedge.net/bin-linux/${P}.zip"
S="${WORKDIR}"
LICENSE="Mojang"
SLOT="0"
KEYWORDS="-* ~amd64"
RDEPEND="
acct-group/bedrock
acct-user/bedrock
app-misc/dtach
dev-libs/openssl:0/1.1
net-misc/curl[ssl]
sys-libs/zlib
"
BDEPEND="app-arch/unzip"
RESTRICT="bindist mirror"
DOCS=(
"bedrock_server_how_to.html"
"release-notes.txt"
)
QA_PREBUILT="opt/bedrock-server/bedrock_server"
src_compile() {
:;
}
src_install() {
exeinto /opt/bedrock-server
doexe bedrock_server
insinto /opt/bedrock-server
doins {permissions,whitelist}.json server.properties
doins -r {behavior,resource}_packs definitions structures
dodir /opt/bin
dosym ../bedrock-server/bedrock_server /opt/bin/bedrock-server
newinitd "${FILESDIR}"/bedrock-server.initd-r2 bedrock-server
newconfd "${FILESDIR}"/bedrock-server.confd bedrock-server
einstalldocs
}
|