summaryrefslogtreecommitdiff
path: root/games-rpg
diff options
context:
space:
mode:
authorLibravatar Terin Stock <terinjokes@gmail.com>2024-10-21 04:28:05 +0200
committerLibravatar Terin Stock <terinjokes@gmail.com>2024-10-21 04:28:05 +0200
commita73b83e7441700f152ebcefa488b219d533dd98c (patch)
tree375cd8f237ed46f878179151c89179a0166663e5 /games-rpg
parentgames-action/vintagestory: new package, add 1.19.8 (diff)
downloadebuilds-a73b83e7441700f152ebcefa488b219d533dd98c.tar.xz
games-rpg/shipwright: new package, add 8.0.6
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/shipwright/Manifest1
-rw-r--r--games-rpg/shipwright/shipwright-8.0.6.ebuild85
2 files changed, 86 insertions, 0 deletions
diff --git a/games-rpg/shipwright/Manifest b/games-rpg/shipwright/Manifest
new file mode 100644
index 0000000..d5c3e99
--- /dev/null
+++ b/games-rpg/shipwright/Manifest
@@ -0,0 +1 @@
+DIST shipwright-8.0.6.zip 13540700 BLAKE2B 17f75c0972ae3c1102234310908c1a0c45f8b121e47271948d2a70d0002be90f1a9bd1a84a60e6807fbc9ea4fe7545a5e07752c3c88023ef264ba2a1e41e864f SHA512 a5033c4d33676e31c3e11099cfb96669604498501aecdabf9c016769fdc2bb5da5b4f9454b391a84ceb0351b387fa7c63d7500ffabe8dc87108074485d11253c
diff --git a/games-rpg/shipwright/shipwright-8.0.6.ebuild b/games-rpg/shipwright/shipwright-8.0.6.ebuild
new file mode 100644
index 0000000..4b686e5
--- /dev/null
+++ b/games-rpg/shipwright/shipwright-8.0.6.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit desktop
+
+DESCRIPTION="Modern PC port of Ocarina of Time"
+HOMEPAGE="https://github.com/HarbourMasters/Shipwright"
+SRC_URI="https://github.com/HarbourMasters/Shipwright/releases/download/${PV}/SoH-MacReady-Golf-Linux-Compatibility.zip -> ${P}.zip"
+
+RDEPEND="
+ system? (
+ media-libs/libsdl2
+ media-libs/sdl2-net
+ media-libs/libglvnd
+ media-libs/glew
+ sys-libs/zlib
+ app-arch/bzip2
+ media-libs/libpulse
+ media-libs/libpng
+ )
+ gnome-extra/zenity
+"
+BDEPEND="app-arch/unzip dev-util/patchelf"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+system"
+
+QA_PREBUILT="opt/${PN}/*"
+RESTRICT="bindist mirror"
+
+src_unpack() {
+ default
+ chmod +x soh.appimage
+ mkdir -p "${S}" || die
+ cd "${S}" || die
+ "${WORKDIR}"/soh.appimage --appimage-extract || die
+}
+
+src_prepare() {
+ default
+ sed -e 's/Name=SOH/Name=Ship of Harkinian/' \
+ -e 's/Exec=soh.sh/Exec=soh/' \
+ -e 's/Icon=sohIcon/Icon=soh/' \
+ -e '/X-AppImage-Integrate/d' \
+ -i squashfs-root/usr/share/applications/soh.desktop || die
+ cat >> squashfs-root/usr/share/applications/soh.desktop <<-EOF
+ StartupWMClass=soh.elf
+ EOF
+}
+
+src_install() {
+ cd squashfs-root || die
+
+ if use system; then
+ patchelf --replace-needed libGLEW.so.2.1 libGLEW.so usr/bin/soh.elf
+ fi
+
+ mkdir -p "${ED}/opt/${PN}/usr/{bin,lib}"
+ cp -r usr/bin "${ED}/opt/${PN}/usr/bin"
+
+ newicon -s 512 usr/share/icons/hicolor/512x512/apps/sohIcon.png soh.png
+ domenu usr/share/applications/soh.desktop
+
+ if ! use system; then
+ cp -r usr/lib "${ED}/opt/${PN}/usr/lib"
+ dodoc -r usr/share/doc/*
+ fi
+
+ cat > soh <<-EOF || die
+ #!/bin/sh
+
+ if [[ -z "\${XDG_DATA_HOME+x}" ]]; then
+ SHIP_HOME="\${HOME}/.local/share/shipwright"
+ else
+ SHIP_HOME="\${XDG_DATA_HOME}/shipwright"
+ fi
+ export SHIP_HOME
+
+ exec "${EPREFIX}/opt/${PN}/usr/bin/soh.sh"
+ EOF
+ dobin soh
+}