aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Zdanevich <zdanevich.vitaly@ya.ru>2024-03-23 06:28:40 +0400
committerVitaly Zdanevich <zdanevich.vitaly@ya.ru>2024-03-23 06:28:40 +0400
commit79be15d992b7a71e58b0c0f973ecb8839e303a33 (patch)
tree8a45beea9941e035326ceb1b1b2741201a47b5b0
parentgui-apps/lswt: add 9999 (diff)
downloadguru-79be15d992b7a71e58b0c0f973ecb8839e303a33.tar.gz
guru-79be15d992b7a71e58b0c0f973ecb8839e303a33.tar.bz2
guru-79be15d992b7a71e58b0c0f973ecb8839e303a33.zip
games-strategy/armies-of-exigo-demo: add multiplayer demo
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
-rw-r--r--games-strategy/armies-of-exigo-demo/Manifest1
-rw-r--r--games-strategy/armies-of-exigo-demo/armies-of-exigo-demo-1.0.ebuild29
2 files changed, 18 insertions, 12 deletions
diff --git a/games-strategy/armies-of-exigo-demo/Manifest b/games-strategy/armies-of-exigo-demo/Manifest
index 97ac98e10..13461387b 100644
--- a/games-strategy/armies-of-exigo-demo/Manifest
+++ b/games-strategy/armies-of-exigo-demo/Manifest
@@ -1 +1,2 @@
+DIST armies-of-exigo--multiplayer-demo--portable-without-installer.tar.xz 462702016 BLAKE2B fba9e0d2ade32779b8c08edf1402a4d7502bb4463a3565e37f14d159f0e2854129f1c6a82441fff3e934186cba36bcfa858ac42f6ebf89affefc463b68fee77e SHA512 0beb7790425f7220bdaf3247513466fede9d1c139f2e4dddc09c9fc8a0d67fc0d858f2ac916f1de30a7f117e9ffe08bbfe0ca188222ce772edc5cb579eff03ee
DIST armies-of-exigo--single-player-demo--portable-without-installer.tar.xz 97293504 BLAKE2B c9441d12795273cae4118ddab3e2fdd5df6c621b351f4370f8aba18310cec80a0d02295f343e4639236ca034a055491a9b714ddf2c2e8cd54c492eceb787b4f9 SHA512 b6121c64503fa7362a4c3050f601fa0c365b3154783c7e1fc84307e933f76b8b3fa9fe5061af6fa3fa813e88e680ef1b9ad8e34b4bf2f5d45a884e20f580b078
diff --git a/games-strategy/armies-of-exigo-demo/armies-of-exigo-demo-1.0.ebuild b/games-strategy/armies-of-exigo-demo/armies-of-exigo-demo-1.0.ebuild
index 8bdbedb06..16fd8a1ad 100644
--- a/games-strategy/armies-of-exigo-demo/armies-of-exigo-demo-1.0.ebuild
+++ b/games-strategy/armies-of-exigo-demo/armies-of-exigo-demo-1.0.ebuild
@@ -8,8 +8,10 @@ inherit wrapper
DESCRIPTION="Singleplayer demo of Armies of Exigo (like WarCraft III), Windows"
HOMEPAGE="https://en.wikipedia.org/wiki/Armies_of_Exigo"
-SRC_URI="https://archive.org/download/armies-of-exigo--single-player-demo--portable-without-installer.tar/armies-of-exigo--single-player-demo--portable-without-installer.tar.xz"
-# TODO add multiplayer demo
+SRC_URI="
+ https://archive.org/download/armies-of-exigo--single-player-demo--portable-without-installer.tar/armies-of-exigo--single-player-demo--portable-without-installer.tar.xz
+ https://archive.org/download/armies-of-exigo--multiplayer-demo--portable-without-installer.tar/armies-of-exigo--multiplayer-demo--portable-without-installer.tar.xz
+"
KEYWORDS="~amd64"
S="${WORKDIR}"
@@ -21,26 +23,29 @@ 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="*"
-dir=/opt/armies-of-exigo
+dir=/opt/armies-of-exigo/demo/
src_install() {
- conty=conty-1.25.2
+ mkdir -p "$ED$dir"
- single=armies-of-exigo-demo-single
+ nameSingle=armies-of-exigo--single-player-demo--portable-without-installer
+ nameMulti=armies-of-exigo--multiplayer-demo--portable-without-installer
- mkdir -p "$ED"/opt/armies-of-exigo
+ cp -r "$nameSingle" "$ED$dir"singleplayer
+ cp -r "$nameMulti" "$ED$dir"multiplayer
- name=armies-of-exigo--single-player-demo--portable-without-installer
+ single=armies-of-exigo--demo-singleplayer
+ multi=armies-of-exigo--demo-multiplayer
- cp -r "$name" "$ED"/opt/armies-of-exigo/singleplayer-demo
+ conty='conty-1.25.2'
- path="$dir/singleplayer-demo/Exigo_spdemo.exe"
- make_wrapper "$single" "$conty wine \"$path\""
- # TODO add USE flag to be able to choolse local wine or wine-proton, against 1.4 GB dependency?
+ make_wrapper "$single" "$conty wine $dir/singleplayer/Exigo_spdemo.exe"
+ make_wrapper "$multi" "$conty wine $dir/multiplayer/Exigo_mpdemo.exe"
}
@@ -56,5 +61,5 @@ pkg_postinst() {
einfo "or Intellectual Property holder can make a remake - add more display resolutions, improve the AI,"
einfo "make it runnable on modern Windows."
einfo ""
- einfo "The game is installed to $dir - if you want to run it by another Wine"
+ einfo "The game is installed to $dir - if you want to run it by another Wine or operating system"
}