aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Zdanevich <zdanevich.vitaly@ya.ru>2024-03-24 09:10:08 +0400
committerVitaly Zdanevich <zdanevich.vitaly@ya.ru>2024-03-24 09:10:08 +0400
commit4645101d0e6acca8664f78abe13b2c583ed6a036 (patch)
treedf81524dd0dc6dba93bba860353a2892d8fa1ed7 /games-strategy
parentgui-apps/riverguile: new package, add 0.1.0, 9999 (diff)
downloadguru-4645101d0e6acca8664f78abe13b2c583ed6a036.tar.gz
guru-4645101d0e6acca8664f78abe13b2c583ed6a036.tar.bz2
guru-4645101d0e6acca8664f78abe13b2c583ed6a036.zip
games-strategy/massive-assault-network-2-demo: new package
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/massive-assault-network-2-demo/Manifest1
-rw-r--r--games-strategy/massive-assault-network-2-demo/massive-assault-network-2-demo-2.0.270.ebuild55
-rw-r--r--games-strategy/massive-assault-network-2-demo/metadata.xml8
3 files changed, 64 insertions, 0 deletions
diff --git a/games-strategy/massive-assault-network-2-demo/Manifest b/games-strategy/massive-assault-network-2-demo/Manifest
new file mode 100644
index 000000000..e419b1659
--- /dev/null
+++ b/games-strategy/massive-assault-network-2-demo/Manifest
@@ -0,0 +1 @@
+DIST massive-assault-network-2-demo.tar.xz 147239896 BLAKE2B 70b8404aca46eb77e26249dca694b379fadbbe0179006cf8609e10e77a65af14b69d847d63a8be0c9f2ba012cfc96b362e41a912b1d6caa2fd35b666ae605b08 SHA512 277c22281f4be686727876bc3739d4bcfb4ceec620c139546ad1e3963f6141006a80a74ceed0da680e36def8c9151179ed789637651b2e3573b7202424eb8a06
diff --git a/games-strategy/massive-assault-network-2-demo/massive-assault-network-2-demo-2.0.270.ebuild b/games-strategy/massive-assault-network-2-demo/massive-assault-network-2-demo-2.0.270.ebuild
new file mode 100644
index 000000000..c3b352e65
--- /dev/null
+++ b/games-strategy/massive-assault-network-2-demo/massive-assault-network-2-demo-2.0.270.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2024 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Turn-based, sci-fi, like a chess, from 2006, any screen resolution, good rating"
+HOMEPAGE="http://www.massiveassaultnetwork.com/man2/"
+
+SRC_URI="https://archive.org/download/$PN.tar/$PN.tar.xz"
+
+KEYWORDS="~amd64"
+S="${WORKDIR}"
+
+LICENSE="all-rights-reserved"
+SLOT="0"
+RESTRICT="strip"
+
+RDEPEND="
+ ~games-emulation/conty-1.25.2:0
+"
+# TODO add USE flag to be able to choolse local wine or wine-proton, against 1.4 GB dependency?
+
+QA_PREBUILT="*"
+
+src_install() {
+
+ mkdir -p "$ED$/opt"
+
+ rm "$PN/uninstall.exe"
+ mkdir "$ED/opt" || die
+ mkdir -p "$ED/usr/bin/" || die
+ cp -r "$PN" "$ED/opt/$PN" || die
+
+ conty='conty-1.25.2'
+
+ echo "cd /opt/$PN; $conty wine man2.exe; cd -" > "$ED/usr/bin/$PN"
+ fperms +x "/usr/bin/$PN"
+ # I tried this but on run error: "Problems during decoding OGG files" -
+ # because I need to run from the directory of the game,
+ # but cd does not works with exec
+ # make_wrapper "$PN" "$conty wine /opt/$PN/man2.exe /d /opt/$PN"
+
+}
+
+pkg_postinst() {
+ einfo "More about the game:"
+ einfo "https://en.wikipedia.org/wiki/Massive_Assault_Network_2"
+ einfo "Wikidata: https://www.wikidata.org/wiki/Q4043784"
+ einfo "https://www.mobygames.com/game/44100/massive-assault-network-2"
+ einfo "https://www.metacritic.com/game/massive-assault-network-2"
+ einfo "Discord: https://discord.gg/u76RQ98U"
+ einfo "Buy the full game: https://www.humblebundle.com/store/massive-assault-network-2"
+ einfo "Downloaded from http://www.massiveassaultnetwork.com/download/man2demo.exe, installed, archived"
+ einfo "The game is installed to /opt/$PN - if you want to run it by another Wine or operating system"
+}
diff --git a/games-strategy/massive-assault-network-2-demo/metadata.xml b/games-strategy/massive-assault-network-2-demo/metadata.xml
new file mode 100644
index 000000000..812e586b9
--- /dev/null
+++ b/games-strategy/massive-assault-network-2-demo/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <name>Vitaly Zdanevich</name>
+ <email>zdanevich.vitaly@ya.ru</email>
+ </maintainer>
+</pkgmetadata>