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
50
51
52
53
54
55
56
57
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop unpacker wrapper xdg
MY_PN="Psychonauts"
DESCRIPTION="A mind-bending platforming adventure from Double Fine Productions"
HOMEPAGE="https://www.doublefine.com/games/psychonauts"
SRC_URI="gog_${MY_PN,,}_${PV}.sh"
LICENSE="GOG-EULA"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="bindist fetch strip"
BDEPEND="app-arch/unzip"
RDEPEND="
media-libs/libsdl[abi_x86_32,opengl,video]
media-libs/openal[abi_x86_32]
>=sys-devel/gcc-3.4
sys-libs/glibc
!games-action/${MY_PN,,}
"
S="${WORKDIR}/data/noarch"
dir="/opt/${MY_PN,,}"
QA_PREBUILT="${dir#/}/*"
pkg_nofetch() {
elog "Please buy and download ${SRC_URI} from:"
elog " https://www.gog.com/game/${MY_PN,,}"
elog "and move it to your distfiles directory."
}
src_unpack() {
unpack_zip ${A}
}
src_install() {
exeinto "${dir}"
doexe game/${MY_PN}
make_wrapper ${MY_PN,,} "${dir}"/${MY_PN}
insinto "${dir}"
doins -r game/{icon.bmp,WorkResource/,*.pkg}
newicon -s 256 support/icon.png ${MY_PN,,}.png
make_desktop_entry ${MY_PN,,} ${MY_PN} ${MY_PN,,}
dodoc \
docs/"Psychonauts Manual Win.pdf" \
game/Documents/Readmes/*.txt
}
|