From ca86b67cc73401a185d579bf3764cb1705d5b694 Mon Sep 17 00:00:00 2001 From: liuyujielol <2073201758GD@gmail.com> Date: Thu, 12 Dec 2024 13:22:44 +0800 Subject: [PATCH] games-action/vintagestory: new package, add 1.19.8, 1.20.0_rc1 Signed-off-by: liuyujielol <2073201758GD@gmail.com> --- games-action/vintagestory/Manifest | 2 + .../vintagestory/files/Vintagestory.desktop | 12 ++++ .../files/Vintagestory_url_connect.desktop | 11 +++ .../files/Vintagestory_url_mod.desktop | 11 +++ .../vintagestory/vintagestory-1.19.8.ebuild | 72 +++++++++++++++++++ .../vintagestory-1.20.0_rc1.ebuild | 72 +++++++++++++++++++ 6 files changed, 180 insertions(+) create mode 100644 games-action/vintagestory/Manifest create mode 100644 games-action/vintagestory/files/Vintagestory.desktop create mode 100644 games-action/vintagestory/files/Vintagestory_url_connect.desktop create mode 100644 games-action/vintagestory/files/Vintagestory_url_mod.desktop create mode 100644 games-action/vintagestory/vintagestory-1.19.8.ebuild create mode 100644 games-action/vintagestory/vintagestory-1.20.0_rc1.ebuild diff --git a/games-action/vintagestory/Manifest b/games-action/vintagestory/Manifest new file mode 100644 index 000000000..991fa4bad --- /dev/null +++ b/games-action/vintagestory/Manifest @@ -0,0 +1,2 @@ +DIST vs_client_linux-x64_1.19.8.tar.gz 458313815 BLAKE2B f9234554529375473cd95e42d3b2235cfba213b5a904481b18689d4d741bb7716b1dd8b76acc67933b6d053f0a57db5e60cf35cfac17cdef39a21bd5a2281539 SHA512 e15603a1ff48ea439966399d5dfe38018920c78fbe6add15d6dad21347d80b58f375b3651015b209b5e359810124308ba17ad3e700b11e1c451a4f79ef2ef20f +DIST vs_client_linux-x64_1.20.0-rc.1.tar.gz 563444598 BLAKE2B b936272d6c0d988a4f17cdf308b4eb17de04bb508e53366302700d8a4b735dbd56d12274ff9ec408821410512b0a049bb618dc4a07a2630923ce0ba49f511dc3 SHA512 9107a414cb7a1c8dd581d526c253c41103ce09e161debf8c7a5e4aa6406dd21dfd2dabcc2ac1c20da346d7bba55c6899ae85af0e88bd4f526e3b3ce9a89155eb diff --git a/games-action/vintagestory/files/Vintagestory.desktop b/games-action/vintagestory/files/Vintagestory.desktop new file mode 100644 index 000000000..809951d0a --- /dev/null +++ b/games-action/vintagestory/files/Vintagestory.desktop @@ -0,0 +1,12 @@ +#!/usr/bin/xdg-open +[Desktop Entry] +Name=Vintage Story +Comment=Uncompromising wilderness survival sandbox game +Exec=Vintagestory %U +Terminal=false +Type=Application +StartupNotify=false +StartupWMClass=Vintage Story +Categories=Game; +Path=/opt/vintagestory +Icon=Vintagestory diff --git a/games-action/vintagestory/files/Vintagestory_url_connect.desktop b/games-action/vintagestory/files/Vintagestory_url_connect.desktop new file mode 100644 index 000000000..0c89f3f0a --- /dev/null +++ b/games-action/vintagestory/files/Vintagestory_url_connect.desktop @@ -0,0 +1,11 @@ +#!/usr/bin/xdg-open +[Desktop Entry] +Name=Vintage Story URI connect +Exec=Vintagestory -c %U +Terminal=false +NoDisplay=true +Type=Application +StartupNotify=false +Categories=Game; +Path=/opt/vintagestory +MimeType=x-scheme-handler/vintagestoryjoin; diff --git a/games-action/vintagestory/files/Vintagestory_url_mod.desktop b/games-action/vintagestory/files/Vintagestory_url_mod.desktop new file mode 100644 index 000000000..5542db69d --- /dev/null +++ b/games-action/vintagestory/files/Vintagestory_url_mod.desktop @@ -0,0 +1,11 @@ +#!/usr/bin/xdg-open +[Desktop Entry] +Name=Vintage Story URI mod install +Exec=Vintagestory -i %U +Terminal=false +NoDisplay=true +Type=Application +StartupNotify=false +Categories=Game; +Path=/opt/vintagestory +MimeType=x-scheme-handler/vintagestorymodinstall; diff --git a/games-action/vintagestory/vintagestory-1.19.8.ebuild b/games-action/vintagestory/vintagestory-1.19.8.ebuild new file mode 100644 index 000000000..5e57aa967 --- /dev/null +++ b/games-action/vintagestory/vintagestory-1.19.8.ebuild @@ -0,0 +1,72 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +DOTNET_PKG_COMPAT=7.0 +inherit desktop dotnet-pkg-base xdg + +DESCRIPTION="Uncompromising wilderness survival sandbox game (requires paid account)" +HOMEPAGE="https://www.vintagestory.at/" + +MY_PV="${PV/_rc/-rc.}" +_CHANNEL="stable" +SRC_URI="https://cdn.vintagestory.at/gamefiles/${_CHANNEL}/vs_client_linux-x64_${MY_PV}.tar.gz" +S="${WORKDIR}/${PN}" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* ~amd64" + +DEPEND=" + virtual/dotnet-sdk:${DOTNET_PKG_COMPAT} +" +RDEPEND=" + ${DEPEND} + media-libs/openal + virtual/opengl +" +BDEPEND=" + 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}" + +src_prepare() { + rm *.desktop || die + + rm "${S}/install.sh" || die + rm "${S}/server.sh" || die + rm "${S}/run.sh" || die + + einfo "Create symbolic links for any assets (excluding fonts) containing non-lowercase letters" + find "${S}"/assets/ -not -path "*/fonts/*" -regex ".*/.*[A-Z].*" | while read -r file; do + local filename="$(basename -- "$file")" + ln -sf "$filename" "${file%/*}"/"${filename,,}" + done + + default +} + +src_compile() { + : +} + +src_install() { + newicon assets/gameicon.xpm Vintagestory.xpm + domenu "${FILESDIR}/Vintagestory.desktop" + domenu "${FILESDIR}/Vintagestory_url_connect.desktop" + domenu "${FILESDIR}/Vintagestory_url_mod.desktop" + + insinto "/usr/share/fonts/${PN}" + doins assets/game/fonts/*.ttf + + dotnet-pkg-base_install "${INST_DIR}" + dotnet-pkg-base_append-launchervar "mesa_glthread=true" + dotnet-pkg-base_dolauncher "${INST_DIR}/Vintagestory" +} diff --git a/games-action/vintagestory/vintagestory-1.20.0_rc1.ebuild b/games-action/vintagestory/vintagestory-1.20.0_rc1.ebuild new file mode 100644 index 000000000..2f890c829 --- /dev/null +++ b/games-action/vintagestory/vintagestory-1.20.0_rc1.ebuild @@ -0,0 +1,72 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +DOTNET_PKG_COMPAT=7.0 +inherit desktop dotnet-pkg-base xdg + +DESCRIPTION="Uncompromising wilderness survival sandbox game (requires paid account)" +HOMEPAGE="https://www.vintagestory.at/" + +MY_PV="${PV/_rc/-rc.}" +_CHANNEL="unstable" +SRC_URI="https://cdn.vintagestory.at/gamefiles/${_CHANNEL}/vs_client_linux-x64_${MY_PV}.tar.gz" +S="${WORKDIR}/${PN}" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* ~amd64" + +DEPEND=" + virtual/dotnet-sdk:${DOTNET_PKG_COMPAT} +" +RDEPEND=" + ${DEPEND} + media-libs/openal + virtual/opengl +" +BDEPEND=" + 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}" + +src_prepare() { + rm *.desktop || die + + rm "${S}/install.sh" || die + rm "${S}/server.sh" || die + rm "${S}/run.sh" || die + + einfo "Create symbolic links for any assets (excluding fonts) containing non-lowercase letters" + find "${S}"/assets/ -not -path "*/fonts/*" -regex ".*/.*[A-Z].*" | while read -r file; do + local filename="$(basename -- "$file")" + ln -sf "$filename" "${file%/*}"/"${filename,,}" + done + + default +} + +src_compile() { + : +} + +src_install() { + newicon assets/gameicon.xpm Vintagestory.xpm + domenu "${FILESDIR}/Vintagestory.desktop" + domenu "${FILESDIR}/Vintagestory_url_connect.desktop" + domenu "${FILESDIR}/Vintagestory_url_mod.desktop" + + insinto "/usr/share/fonts/${PN}" + doins assets/game/fonts/*.ttf + + dotnet-pkg-base_install "${INST_DIR}" + dotnet-pkg-base_append-launchervar "mesa_glthread=true" + dotnet-pkg-base_dolauncher "${INST_DIR}/Vintagestory" +}