blob: bd3bbb79ce38faa79e493f8893d93a79f07a605c (
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
50
51
52
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop unpacker wrapper
DESCRIPTION="Baldur's Gate: Enhanced Edition"
HOMEPAGE="https://baldursgate.beamdog.com/"
SRC_URI="baldur_s_gate_enhanced_edition_${PV//./_}.sh"
LICENSE="GOG-EULA"
SLOT="0"
KEYWORDS="-* ~amd64"
RESTRICT="bindist fetch"
RDEPEND="dev-libs/expat
dev-libs/openssl-compat:1.0.0
media-libs/openal
virtual/opengl
x11-libs/libX11"
BDEPEND="app-arch/unzip"
QA_PRESTRIPPED="opt/${PN}/BaldursGate"
S="${WORKDIR}/data/noarch"
pkg_nofetch() {
einfo "Please buy and download \"${SRC_URI}\" from"
einfo "https://www.gog.com/game/baldurs_gate_enhanced_edition"
einfo "and place it in your DISTDIR directory."
}
src_unpack() {
unpack_zip ${A}
}
src_install() {
local dir="/opt/${PN}"
dodoc -r "game/Manuals/."
rm -r "game/Manuals" || die "rm failed"
insinto "${dir}"
doins -r "game/."
fperms +x "${dir}/BaldursGate"
make_wrapper ${PN} "./BaldursGate" "${dir}"
newicon "support/icon.png" "${PN}.png"
make_desktop_entry "${PN}" "Baldur's Gate: Enhanced Edition" "${PN}"
}
|