forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
orthorobot-0.ebuild
50 lines (39 loc) · 1.12 KB
/
orthorobot-0.ebuild
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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit eutils games
DESCRIPTION="Nice perspective based puzzle game, where you flatten the view to move across gaps"
HOMEPAGE="http://stabyourself.net/orthorobot/"
SRC_URI="http://stabyourself.net/dl.php?file=${PN}/${PN}-source.zip -> ${P}.zip"
LICENSE="CC-BY-NC-ND-3.0"
SLOT="0"
KEYWORDS="amd64 x86"
RDEPEND=">=games-engines/love-0.8.0"
DEPEND="${RDEPEND}
app-arch/unzip"
S="${WORKDIR}"
src_unpack() {
default
#it is only one .love file (but with crappy name), so we can use asterisk
mv *.love "${P}.zip" || die 'mv failed'
unpack "./${P}.zip"
rm "${P}.zip" || die 'rm failed'
}
src_prepare() {
# fix error on quit
sed -i -e 's/love.event.push("q")/love.event.push(fadegoal)/' menu.lua || die 'sed failed'
epatch_user
}
src_install() {
local dir="${GAMES_DATADIR}/love/${PN}"
insinto "${dir}"
doins -r .
games_make_wrapper "${PN}" "love ${dir}"
make_desktop_entry "${PN}"
prepgamesdirs
}
pkg_postinst() {
elog "${PN} savegames and configurations are stored in:"
elog "~/.local/share/love/${PN}/"
}