blob: 991d30d79fcbda4c53653ae268ed19a96ebf0a6f (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MULTILIB_COMPAT=( abi_x86_32 )
inherit eutils multilib-minimal unpacker-nixstaller
DESCRIPTION="Retro-inspired brick-breaking game"
HOMEPAGE="http://www.shattergame.com"
SRC_URI="Shatter-Release-2013-06-09.sh"
RESTRICT="fetch strip"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="
virtual/opengl
media-gfx/nvidia-cg-toolkit[${MULTILIB_USEDEP}]
media-libs/fontconfig[${MULTILIB_USEDEP}]
media-libs/libsdl2[${MULTILIB_USEDEP}]
media-libs/mesa[${MULTILIB_USEDEP}]
sys-libs/zlib[${MULTILIB_USEDEP}]
x11-libs/libX11[${MULTILIB_USEDEP}]
x11-libs/libXext[${MULTILIB_USEDEP}]
x11-libs/libXft[${MULTILIB_USEDEP}]
"
S="${WORKDIR}"
MY_PN=Shatter
# TODO: make fmod multilib
QA_TEXTRELS="
opt/shatter/lib/libfmodex-4.36.21.so
opt/shatter/lib/libfmodeventnet-4.36.21.so
opt/shatter/lib/libfmodevent-4.36.21.so
"
pkg_nofetch() {
ewarn
ewarn "Place ${A} to ${DISTDIR}"
ewarn
}
src_unpack() {
nixstaller_unpack \
instarchive_all \
instarchive_linux_all
}
src_install() {
local dir="/opt/${PN}"
insinto "${dir}"
doins -r data pkcmn.pak
exeinto "${dir}"
doexe SettingsEditor.bin.x86 Shatter.bin.x86
# Broken dep
insinto "${dir}/lib"
doins lib/libfmod{event,eventnet,ex}-4.36.21.so
doins lib/libsteam_api.so
doicon "${MY_PN}.png"
newicon "Settings.png" "${MY_PN}-Settings.png"
make_desktop_entry "${PN}" "${MY_PN}" "${MY_PN}"
make_desktop_entry "${PN}-settings" "${MY_PN} Settings" "${MY_PN}-Settings"
make_wrapper "${PN}" "./${MY_PN}.bin.x86" "${dir}" "${dir}/lib"
make_wrapper "${PN}-settings" "./SettingsEditor.bin.x86" "${dir}" "${dir}/lib"
dodoc README.linux
}
|