commit:     f54492fad55cae43ac8a9b835d957909e8758359
Author:     Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
AuthorDate: Thu Mar 28 00:22:17 2024 +0000
Commit:     Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
CommitDate: Thu Mar 28 00:22:17 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f54492fa

games-strategy/warhammer4000-dawn-of-war-demo: new package

Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly <AT> ya.ru>

 .../warhammer4000-dawn-of-war-demo/Manifest        |  1 +
 .../warhammer4000-dawn-of-war-demo/metadata.xml    |  8 ++++
 .../warhammer4000-dawn-of-war-demo-1.ebuild        | 45 ++++++++++++++++++++++
 3 files changed, 54 insertions(+)

diff --git a/games-strategy/warhammer4000-dawn-of-war-demo/Manifest 
b/games-strategy/warhammer4000-dawn-of-war-demo/Manifest
new file mode 100644
index 0000000000..8e8390dd3d
--- /dev/null
+++ b/games-strategy/warhammer4000-dawn-of-war-demo/Manifest
@@ -0,0 +1 @@
+DIST warhammer4000-dawn-of-war-demo.tar.xz 304260244 BLAKE2B 
3cc765ef30f70478f51eabbaf30edad19eeca9d57f68e0ae8f47f3dd524f78fa8c65cd93a2b98b0b3b00673d936e71ae0d73ba99979a0db0c230bc69ad3e11fd
 SHA512 
275e1e86164ef3fb189042dc7a7bd7ffb53bcde29d6ca706cc8be37229977a19328872d7e5c286daa39d6bca646eecd756b0d2a2cc3958531459c562540bd69e

diff --git a/games-strategy/warhammer4000-dawn-of-war-demo/metadata.xml 
b/games-strategy/warhammer4000-dawn-of-war-demo/metadata.xml
new file mode 100644
index 0000000000..812e586b96
--- /dev/null
+++ b/games-strategy/warhammer4000-dawn-of-war-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.vit...@ya.ru</email>
+       </maintainer>
+</pkgmetadata>

diff --git 
a/games-strategy/warhammer4000-dawn-of-war-demo/warhammer4000-dawn-of-war-demo-1.ebuild
 
b/games-strategy/warhammer4000-dawn-of-war-demo/warhammer4000-dawn-of-war-demo-1.ebuild
new file mode 100644
index 0000000000..22f5fcec6d
--- /dev/null
+++ 
b/games-strategy/warhammer4000-dawn-of-war-demo/warhammer4000-dawn-of-war-demo-1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2024 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="RTS with high rating from 2004, like WarCraft III or Armies of 
Exigo"
+HOMEPAGE="https://en.wikipedia.org/wiki/Warhammer_40%2C000%3A_Dawn_of_War";
+
+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" || die
+
+       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 $PN; cd -" > "$ED/usr/bin/$PN" || die
+       fperms +x "/usr/bin/$PN"
+
+}
+
+pkg_postinst() {
+       einfo "More about the game:"
+       einfo 
"https://store.steampowered.com/app/4570/Warhammer_40000_Dawn_of_War__Game_of_the_Year_Edition/";
+       einfo "https://www.wikidata.org/wiki/Q1061708";
+       einfo 
"https://www.pcgamingwiki.com/wiki/Warhammer_40%2C000%3A_Dawn_of_War";
+}

Reply via email to