summaryrefslogtreecommitdiff
path: root/games-strategy/homm2-demo/homm2-demo-0.ebuild
blob: d365cab5c09e48ae18bc08a93a2d0a29d8d3dd62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Data files for HoMM II Demo version"
HOMEPAGE="https://archive.org/details/HeroesofMightandMagicIITheSuccessionWars_1020"
SRC_URI="https://archive.org/download/HeroesofMightandMagicIITheSuccessionWars_1020/h2demo.zip -> ${P}.zip"

LICENSE="HoMM2-Demo"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="games-engines/fheroes2"
RDEPEND="
	${DEPEND}
	!games-strategy/homm2-gold-gog
"
BDEPEND="app-arch/unzip"

S="${WORKDIR}"

src_install() {
	insinto /usr/share/fheroes2/data
	doins DATA/*

	insinto /usr/share/fheroes2/maps
	doins MAPS/*
}

pkg_postinst() {
	elog "Run the game using ${EPREFIX}/usr/bin/fheroes2"
}