# 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}" }