summaryrefslogtreecommitdiff
blob: 794827ce5ff1e021ea15fd1378a18c3c0b8aca84 (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
46
47
48
49
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit desktop unpacker

DESCRIPTION="Epic fantasy role-playing adventure in an enormous and unique world"
HOMEPAGE="https://www.spiderwebsoftware.com/avadon"
SRC_URI="avadon-linux-${PV#*_p}-bin.txt" # .txt is odd but that's what Humble Bundle sends.
S="${WORKDIR}/data"

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

QA_PREBUILT="opt/${PN}/Avadon"

RDEPEND="
	media-libs/libsdl[opengl,video]
	media-libs/openal"
BDEPEND="app-arch/unzip"

pkg_nofetch() {
	einfo "Please buy and download ${SRC_URI} from:"
	einfo "  ${HOMEPAGE}"
	einfo "and move it to your distfiles directory."
}

src_unpack() {
	unpack_zip ${A}
}

src_install() {
	local dir=/opt/${PN}

	insinto ${dir}
	doins -r "avadon files" icon.bmp

	exeinto ${dir}
	newexe Avadon-$(usex amd64 amd64 x86) Avadon
	dosym ../..${dir}/Avadon /usr/bin/${PN}

	newicon Avadon.png ${PN}.png
	make_desktop_entry ${PN} "Avadon: The Black Fortress"

	dodoc README-linux.txt
}