blob: a015842e025c7508512293b11d192b4f09d450df (
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
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="Spirits"
inherit desktop eutils
DESCRIPTION="Save the spirits of leaf litters"
HOMEPAGE="https://www.spacesofplay.com/spirits/"
SRC_URI="${PN}-linux-${PV}_120903-1348705231.zip"
RESTRICT="fetch mirror"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="
media-libs/openal
"
# media-libs/libsdl:2 #somewhy doesn't work with all latest versions of SDL2 in overlay
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_PN}"
src_install() {
local libdir binary
local dir="/opt/${MY_PN}"
use amd64 && {
# TODO: unbundling SDL2
libdir=x86_64
binary=Spirits-64
}
use x86 && {
# TODO: unbundling SDL2
libdir=i686
binary=Spirits-32
}
dodoc README.TXT
rm "./${libdir}/libopenal.so.1"
exeinto "${dir}"
insinto "${dir}"
doins -r data
# TODO: unbundling SDL2
doins -r "${libdir}"
doexe "${binary}"
# install shortcuts
make_wrapper "${PN}" "./${binary}" "${dir}" "${dir}/${libdir}" || die "install shortcut"
make_desktop_entry "${PN}" "${MY_PN}" "${PN}"
}
pkg_postinstall() {
einfo "If pre-start dialog looks ugly for you, try to remove ~/.themes"
einfo "At least, it helped me in such situation."
}
|