blob: 7fe1e0d27473448818e59c237a0c239f44aa7df0 (
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-2014 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.5 2014/05/07 15:41:03 ulm Exp $
inherit eutils unpacker 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="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="mirror bindist 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_PREBUILT="${dir:1}/lib/*
${dir:1}/bin/meng"
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}
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}"
}
|