summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-fps/doom2-data-gog/doom2-data-gog-1.9.ebuild')
-rw-r--r--games-fps/doom2-data-gog/doom2-data-gog-1.9.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/games-fps/doom2-data-gog/doom2-data-gog-1.9.ebuild b/games-fps/doom2-data-gog/doom2-data-gog-1.9.ebuild
new file mode 100644
index 00000000000..563e7001b56
--- /dev/null
+++ b/games-fps/doom2-data-gog/doom2-data-gog-1.9.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Data files for DOOM II and the Master Levels from gog.com"
+HOMEPAGE="https://www.gog.com/en/game/doom_ii_final_doom"
+SRC_URI="setup_doom_ii_with_master_levels_${PV}_(28044).exe"
+LICENSE="GOG-EULA"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~m68k ~x86"
+RESTRICT="bindist fetch"
+
+BDEPEND="app-arch/innoextract"
+
+S="${WORKDIR}"
+
+pkg_nofetch() {
+ einfo "Please buy and download ${SRC_URI} from:"
+ einfo " ${HOMEPAGE}"
+ einfo "and move it to your distfiles directory."
+}
+
+src_install() {
+ innoextract --extract --lowercase \
+ --include=/doom2/DOOM2.WAD \
+ --include=/master/wads \
+ --include=/Manual.pdf \
+ "${DISTDIR}/${A}" || die
+
+ insinto /usr/share/doom
+ doins doom2/doom2.wad
+
+ insinto /usr/share/doom/master
+ doins master/wads/*.wad
+
+ dodoc manual.pdf
+ docinto master
+ dodoc master/wads/*.txt
+}