mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-10 11:58:43 -04:00
games-action/vintagestory: new package, add 1.19.8, 1.20.0_rc1
Signed-off-by: liuyujielol <2073201758GD@gmail.com>
This commit is contained in:
parent
3078a5b7fc
commit
ca86b67cc7
2
games-action/vintagestory/Manifest
Normal file
2
games-action/vintagestory/Manifest
Normal file
@ -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
|
12
games-action/vintagestory/files/Vintagestory.desktop
Normal file
12
games-action/vintagestory/files/Vintagestory.desktop
Normal file
@ -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
|
@ -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;
|
11
games-action/vintagestory/files/Vintagestory_url_mod.desktop
Normal file
11
games-action/vintagestory/files/Vintagestory_url_mod.desktop
Normal file
@ -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;
|
72
games-action/vintagestory/vintagestory-1.19.8.ebuild
Normal file
72
games-action/vintagestory/vintagestory-1.19.8.ebuild
Normal file
@ -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"
|
||||
}
|
72
games-action/vintagestory/vintagestory-1.20.0_rc1.ebuild
Normal file
72
games-action/vintagestory/vintagestory-1.20.0_rc1.ebuild
Normal file
@ -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"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user