diff options
author | 2024-10-20 02:19:47 +0200 | |
---|---|---|
committer | 2024-10-20 02:19:47 +0200 | |
commit | 2f1b810ea38e730d421b96d81c5588be63c4f3a7 (patch) | |
tree | d03dfb7ea07c6aa2512b16d4ebd1d26946c9182c /games-action | |
parent | app-crypt/lego: new package, add 4.19.2 (diff) | |
download | ebuilds-2f1b810ea38e730d421b96d81c5588be63c4f3a7.tar.xz |
games-action/vintagestory: new package, add 1.19.8
Diffstat (limited to 'games-action')
-rw-r--r-- | games-action/vintagestory/Manifest | 1 | ||||
-rw-r--r-- | games-action/vintagestory/files/vintagestory.desktop | 13 | ||||
-rw-r--r-- | games-action/vintagestory/files/vsmodinstall-handler.desktop | 10 | ||||
-rw-r--r-- | games-action/vintagestory/vintagestory-1.19.8.ebuild | 61 |
4 files changed, 85 insertions, 0 deletions
diff --git a/games-action/vintagestory/Manifest b/games-action/vintagestory/Manifest new file mode 100644 index 0000000..eeeb2ea --- /dev/null +++ b/games-action/vintagestory/Manifest @@ -0,0 +1 @@ +DIST vintagestory-1.19.8.tar.gz 458313815 BLAKE2B f9234554529375473cd95e42d3b2235cfba213b5a904481b18689d4d741bb7716b1dd8b76acc67933b6d053f0a57db5e60cf35cfac17cdef39a21bd5a2281539 SHA512 e15603a1ff48ea439966399d5dfe38018920c78fbe6add15d6dad21347d80b58f375b3651015b209b5e359810124308ba17ad3e700b11e1c451a4f79ef2ef20f diff --git a/games-action/vintagestory/files/vintagestory.desktop b/games-action/vintagestory/files/vintagestory.desktop new file mode 100644 index 0000000..206c390 --- /dev/null +++ b/games-action/vintagestory/files/vintagestory.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Vintage Story +Comment=Uncompromising wilderness survival sandbox game +Icon=/usr/share/pixmaps/vintagestory.xpm +Exec=/usr/bin/vintagestory +Path=/usr/share/vintagestory +NoDisplay=false +Categories=Game; +StartupNotify=false +Terminal=false +StartupWMClass=Vintage Story diff --git a/games-action/vintagestory/files/vsmodinstall-handler.desktop b/games-action/vintagestory/files/vsmodinstall-handler.desktop new file mode 100644 index 0000000..7e931cb --- /dev/null +++ b/games-action/vintagestory/files/vsmodinstall-handler.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Vintage Story 1-click Mod Install Handler +Comment=Handler for vintagestorymodinstall:// URI scheme +Exec=/usr/bin/vintagestory -i %u +Path=/usr/share/vintagestory +MimeType=x-scheme-handler/vintagestorymodinstall; +NoDisplay=true +Terminal=false 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 0000000..5533fb3 --- /dev/null +++ b/games-action/vintagestory/vintagestory-1.19.8.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Thanks to AUR maintainer copygirl for their PKGBUILD, which this +# is based on. + +EAPI=8 +DOTNET_PKG_COMPAT="7.0" +inherit desktop font xdg-utils dotnet-pkg-base + +DESCRIPTION="Uncompromising wilderness survival sandbox game" +HOMEPAGE="https://www.vintagestory.at/" +AUR_COMMIT="e0ccb81a7f7bf6ef9a966aa54ffd8df5765143c2" +RDEPEND=" + ${DOTNET_PKG_RDEPS} + virtual/opengl +" +SRC_URI="https://cdn.vintagestory.at/gamefiles/stable/vs_client_linux_x64_${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}" +FONT_S="${WORKDIR}/${PN}/assets/game/fonts" +FONT_SUFFIX="otf ttf" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="~amd64" + +QA_PREBUILT="usr/share/${PN}/*" +RESTRICT="bindist mirror" + +src_install() { + # remove install script provided by developers + rm install.sh + + # create symbolic links for any assets (excluding fonts) containging non-lowercase letters. + # some asset files might include uppercase letters, but the game expects them to be lowercase + find assets/ -not -path "*/fonts/*" -regex ".*/.*[A-Z].*" | while read -r file; do + local filename="$(basename -- "$file")" + ln -sf "$filename" "${file%/*}"/"${filename,,}" + done + + # install fonts + font_src_install + + # install desktop files and icon + domenu "${FILESDIR}"/*.desktop + newicon assets/gameicon.xpm ${PN}.xpm + + # install all application files + cp -rdp --no-preserve=ownership . "${ED}"/usr/share/"${PN}" + + # create a wrapper to set up the .NET runtime + dotnet-pkg-base_dolauncher "${EPREFIX}"/usr/share/"${PN}"/Vintagestory "${PN}" +} + +pkg_postinst() { + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_desktop_database_update +} |