commit:     768993e09e285fbe8301d49b8e9c0c353cdafbcd
Author:     Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
AuthorDate: Mon Apr 15 12:12:38 2024 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Mon Apr 15 12:12:38 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=768993e0

games-fps/the-dark-mod-bin: new package, native game

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

 games-fps/the-dark-mod-bin/Manifest                |  1 +
 games-fps/the-dark-mod-bin/metadata.xml            |  8 +++++
 .../the-dark-mod-bin/the-dark-mod-bin-2.12.ebuild  | 34 ++++++++++++++++++++++
 3 files changed, 43 insertions(+)

diff --git a/games-fps/the-dark-mod-bin/Manifest 
b/games-fps/the-dark-mod-bin/Manifest
new file mode 100644
index 0000000000..236cde46aa
--- /dev/null
+++ b/games-fps/the-dark-mod-bin/Manifest
@@ -0,0 +1 @@
+DIST the-dark-mod-2.12.tar.xz 17263615692 BLAKE2B 
c4a7b2bbf804b46c88ded6150970989c6f6aa5e200a0cea175169f8c109b2d6bde565010bcfca200d75961f21fc90588fc347c9a2059c2a06431362e3327583c
 SHA512 
35bba5d49a5a7dd5c612b06996a2ce43f6aa3b9e07db9fdeb42a403b1d34d825c6a6877c6690a0ae082a8a8a5e85abdcda62ccaa897a2f2c238fe492a1f456d1

diff --git a/games-fps/the-dark-mod-bin/metadata.xml 
b/games-fps/the-dark-mod-bin/metadata.xml
new file mode 100644
index 0000000000..812e586b96
--- /dev/null
+++ b/games-fps/the-dark-mod-bin/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-fps/the-dark-mod-bin/the-dark-mod-bin-2.12.ebuild 
b/games-fps/the-dark-mod-bin/the-dark-mod-bin-2.12.ebuild
new file mode 100644
index 0000000000..07b2ac44a9
--- /dev/null
+++ b/games-fps/the-dark-mod-bin/the-dark-mod-bin-2.12.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2024 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Inspired by Thief on Doom 3 libre engine (id Tech 4)"
+HOMEPAGE="
+       https://www.thedarkmod.com
+       https://en.wikipedia.org/wiki/The_Dark_Mod
+"
+SRC_URI="https://archive.org/download/the-dark-mod/the-dark-mod-$PV.tar.xz";
+
+LICENSE="
+       GPL-3
+       CC-BY-NC-ND-3.0
+"
+
+SLOT="0"
+KEYWORDS="~amd64"
+
+QA_PREBUILT="*"
+RESTRICT="strip"
+
+S="${WORKDIR}/the-dark-mod"
+
+src_install() {
+       dodir /opt
+       dodir /usr/bin/
+
+       cp -r . "$ED/opt/$PN" || die
+
+       echo "cd /opt/$PN; ./thedarkmod.x64; cd -" > "$ED/usr/bin/$PN"
+       fperms +x "/usr/bin/$PN"
+}

Reply via email to