summaryrefslogtreecommitdiff
path: root/games-server/vintagestory/vintagestory-1.21.6.ebuild
blob: ec265374b87feb8c702b8ff6489a9cb5b4f8c0c9 (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
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
DOTNET_PKG_COMPAT=8.0
inherit dotnet-pkg-base

MY_PV="${PV/_rc/-rc.}"
_CHANNEL="stable"

DESCRIPTION="Dedicated game server for Vintage Story"
HOMEPAGE="https://www.vintagestory.at/"
SRC_URI="https://cdn.vintagestory.at/gamefiles/${_CHANNEL}/vs_server_linux-x64_${MY_PV}.tar.gz"
S="${WORKDIR}"

LICENSE="all-rights-reserved"
SLOT=0
KEYWORDS="-* ~amd64"

RDEPEND="
	acct-group/vintagestory
	acct-user/vintagestory
	net-misc/curl
	virtual/dotnet-sdk:${DOTNET_PKG_COMPAT}
"
BDEPEND="
	sys-devel/gettext
	virtual/dotnet-sdk:${DOTNET_PKG_COMPAT}
"

# Do NOT Distribute!
RESTRICT="bindist mirror strip"

QA_PREBUILT="*"
QA_PRESTRIPPED="*"

DOTNET_PKG_OUTPUT="${S}"
INST_DIR="/opt/${PN}-server"

src_compile() {
	:
}

src_install() {
	dotnet-pkg-base_install "${INST_DIR}"
	dotnet-pkg-base_dolauncher "${INST_DIR}/VintagestoryServer" "${PN}-server"

	newinitd "${FILESDIR}/${PN}.initd" "${PN}"
}