summaryrefslogtreecommitdiff
blob: 689ef221fbbf8096728c4d44608e2b008f8e08e2 (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
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Arx Fatalis demo"
HOMEPAGE="https://store.steampowered.com/app/1700/Arx_Fatalis/"
SRC_URI="arx_demo_english.zip"

LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="fetch"

RDEPEND="
	!games-rpg/arx-fatalis-data
	games-rpg/arx-libertatis"
DEPEND="
	app-arch/cabextract
	app-arch/unzip
"

S="${WORKDIR}"

pkg_nofetch() {
	einfo "Please find and download ${SRC_URI} and put it into your distfiles directory."
	einfo "There is a list of possible download locations at"
	einfo "http://wiki.arx-libertatis.org/Getting_the_game_data#Demo"
}

src_unpack() {
	unpack ${A}
	cabextract Setup{1,2,3}.cab || die "cabextract failed"
}

src_install() {
	insinto /usr/share/arx/misc
	doins bin/Logo.bmp bin/Arx.ttf
	insinto /usr/share/arx
	newins bin/LOC.pak loc.pak
	newins SFX.pak sfx.pak
	newins SPEECH.pak speech.pak
	doins data.pak bin/data2.pak
}