blob: 3c33105c2e0575ab08e08725df8cbc882d01511b (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit games
DESCRIPTION="Side-scrolling platformer written by StudioPixel (English translation)"
HOMEPAGE="http://www.cavestory.org"
SRC_URI="http://www.archive.org/download/CavestorydoukutsuForLinuxV1.01/linuxdoukutsu-1.01.tar.bz2"
#SRC_URI="http://www.scibotic.com/uploads/2008/04/linuxdoukutsu-${PV}.tar.bz2"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RESTRICT="strip"
RDEPEND="media-libs/libsdl[X]"
S=${WORKDIR}/linuxDoukutsu-${PV}
src_install() {
dogamesbin doukutsu || die dogamesbin failed
insinto "${GAMES_DATADIR}"/${PN}
doins -r data Config.dat DoConfig.exe || die "doins failed"
exeinto "${GAMES_DATADIR}"/${PN}
doexe doukutsu.bin || die "doexe failed"
dosym "${GAMES_STATEDIR}"/${PN}/Profile.dat "${GAMES_DATADIR}"/${PN}/Profile.dat || die "dosym failed"
games_make_wrapper doukutsu ./doukutsu.bin "${GAMES_DATADIR}"/${PN} "${GAMES_DATADIR}"/${PN}
dodoc doc/* || die "dodoc failed"
touch Profile.dat || die "unable to create empty Profile.dat?"
insopts -m 660
insinto "${GAMES_STATEDIR}"/${PN}
doins Profile.dat || die "doins failed"
prepgamesdirs
}
pkg_postinst() {
elog "This port does not provide a configuration tool for Config.dat."
elog "The original DoConfig.exe is provided (if you can use wine),"
elog "or help for configuring it manually is provided in:"
elog "/usr/share/doc/${P}/configfileformat.txt"
elog "If you need to back up your save file for any reason,"
elog "it is located at /var/games/doukutsu-bin/Profile.dat"
}
|