blob: 03a87c6dd39c43b0901906f59c490d7f07c5a01f (
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-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit desktop wrapper xdg
MY_PN="WorldOfGooDemo"
DESCRIPTION="Puzzle game with a strong emphasis on physics (demo version)"
HOMEPAGE="https://2dboy.com/"
SRC_URI="mirror://sourceforge/slackbuildsdirectlinks/worldofgoo/${MY_PN}.${PV}.tar.gz"
LICENSE="2dboy-EULA"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="bindist mirror strip"
RDEPEND="
media-libs/libsdl[opengl,sound,video]
media-libs/sdl-mixer[vorbis]
>=sys-devel/gcc-3.4
sys-libs/glibc
virtual/opengl
virtual/glu
"
dir="/opt/${PN}"
S="${WORKDIR}/${MY_PN}"
QA_PREBUILT="${dir#/}/*"
src_install() {
exeinto "${dir}"
newexe ${MY_PN%Demo}.bin$(usex amd64 64 32) ${MY_PN%Demo}.bin
make_wrapper ${PN} ./${MY_PN%Demo}.bin "${dir}"
insinto "${dir}"
doins -r icons/ properties/ res/
local icon size
for icon in icons/*.{png,svg}; do
size=${icon##*/}
size=${size%%[x.]*}
newicon -s "${size}" "${icon}" "${PN}.${icon##*.}"
done
make_desktop_entry ${PN} "World of Goo (Demo)"
dodoc linux-issues.txt
docinto html
dodoc readme.html
}
|