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

Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
This commit is contained in:
Vitaly Zdanevich
2024-03-28 04:22:17 +04:00
parent 6de9be4d91
commit f54492fad5
3 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST warhammer4000-dawn-of-war-demo.tar.xz 304260244 BLAKE2B 3cc765ef30f70478f51eabbaf30edad19eeca9d57f68e0ae8f47f3dd524f78fa8c65cd93a2b98b0b3b00673d936e71ae0d73ba99979a0db0c230bc69ad3e11fd SHA512 275e1e86164ef3fb189042dc7a7bd7ffb53bcde29d6ca706cc8be37229977a19328872d7e5c286daa39d6bca646eecd756b0d2a2cc3958531459c562540bd69e

View File

@@ -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>

View File

@@ -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"
}