blob: 43a9b725abe98aff86b0975c2de5a4620c011349 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/coldwar-demo/coldwar-demo-1-r1.ebuild,v 1.1 2006/09/28 15:15:58 wolf31o2 Exp $
inherit eutils games
MY_PN=${PN%-demo}
DESCRIPTION="Third-person sneaker like Splinter Cell"
HOMEPAGE="http://linuxgamepublishing.com/info.php?id=coldwar"
SRC_URI="http://demofiles.linuxgamepublishing.com/coldwar/coldwar-demo.run"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="strip"
RDEPEND="virtual/opengl
x86? (
media-libs/libogg
media-libs/openal
media-libs/libvorbis
media-libs/smpeg
dev-libs/glib
x11-libs/libX11
x11-libs/libXext )
amd64? (
app-emulation/emul-linux-x86-sdl
app-emulation/emul-linux-x86-xlibs
app-emulation/emul-linux-x86-medialibs )"
DEPEND=""
S=${WORKDIR}
dir=${GAMES_PREFIX_OPT}/${PN}
QA_TEXTRELS="${dir:1}/lib/libSDL-1.2.so.0.7.2
${dir:1}/lib/libSDL-1.2.so.0"
src_unpack() {
unpack_makeself
unpack ./data/data.tar.gz
mv bin/Linux/x86/${MY_PN}_demo .
mv bin/Linux/x86/bin/meng bin
rm -r bin/{Linux,*BSD} lgp_* setup.* data/data.tar.gz
}
src_install() {
insinto "${dir}"
doins -r * || die "doins -r * failed"
rm "${D}/${dir}"/{${MY_PN}_demo,bin/{launcher,meng}}
exeinto "${dir}"
doexe ${MY_PN}_demo || die "doexe ${MY_PN}_demo failed"
exeinto "${dir}/bin"
doexe bin/{launcher,meng} || die "doexe bin failed"
games_make_wrapper ${PN} ./${MY_PN}_demo "${dir}" "${dir}"
newicon icon.xpm ${PN}.xpm || die "newicon failed"
make_desktop_entry ${PN} "Cold War (Demo)" ${PN}.xpm
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
elog "The instruction manual is available as:"
elog " http://demofiles.linuxgamepublishing.com/coldwar/manual.pdf"
echo
einfo "To play the game, run: ${PN}"
}
|