/[gentoo-x86]/games-fps/soldieroffortune/soldieroffortune-1.06a.ebuild
Gentoo

Contents of /games-fps/soldieroffortune/soldieroffortune-1.06a.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Wed May 4 13:07:07 2005 UTC (13 years, 1 month ago) by wolf31o2
Branch: MAIN
Changes since 1.9: +14 -18 lines
Removing sof script and changing to use games_make_wrapper.  Added loki_patch dependency.  General code cleanup.
(Portage version: 2.0.51.21)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-fps/soldieroffortune/soldieroffortune-1.06a.ebuild,v 1.9 2005/03/07 13:55:38 wolf31o2 Exp $
4
5 inherit games
6
7 DESCRIPTION="First-person shooter based on the mercenary trade"
8 HOMEPAGE="http://www.lokigames.com/products/sof/"
9 SRC_URI="ftp://ftp.planetmirror.com/pub/lokigames/updates/sof/sof-${PV}-cdrom-x86.run
10 ftp://snuffleupagus.animearchive.org/loki/updates/sof/sof-${PV}-cdrom-x86.run"
11
12 LICENSE="LOKI-EULA"
13 SLOT="0"
14 KEYWORDS="x86"
15 RESTRICT="nostrip"
16 IUSE=""
17
18 DEPEND="virtual/libc
19 games-util/loki_patch"
20 RDEPEND="virtual/opengl"
21
22 S=${WORKDIR}
23
24 dir=${GAMES_PREFIX_OPT}/${PN}
25 Ddir=${D}/${dir}
26
27 pkg_setup() {
28 ewarn "The installed game takes about 725MB of space!"
29 cdrom_get_cds sof.xpm
30 games_pkg_setup
31 }
32
33 src_unpack() {
34 unpack_makeself
35 }
36
37 src_install() {
38 dodir ${dir}
39 einfo "Copying files... this may take a while..."
40 exeinto ${dir}
41 doexe ${CDROM_ROOT}/bin/x86/glibc-2.1/sof
42 insinto ${dir}
43 doins ${CDROM_ROOT}/{README,kver.pub,sof.xpm}
44
45 tar xzf ${CDROM_ROOT}/paks.tar.gz -C ${Ddir} \
46 || die "uncompressing data"
47 tar xzf ${CDROM_ROOT}/binaries.tar.gz -C ${Ddir} \
48 || die "uncompressing binaries"
49
50 cd ${S}
51 loki_patch --verify patch.dat
52 loki_patch patch.dat ${Ddir} >& /dev/null || die "patching"
53
54 # now, since these files are coming off a cd, the times/sizes/md5sums wont
55 # be different ... that means portage will try to unmerge some files (!)
56 # we run touch on ${D} so as to make sure portage doesnt do any such thing
57 find ${Ddir} -exec touch '{}' \;
58
59 games_make_wrapper sof ./sof ${dir}
60 doicon ${CDROM_ROOT}/sof.xpm
61
62 prepgamesdirs
63 make_desktop_entry sof "Soldier of Fortune" sof.xpm
64 }
65
66 pkg_postinst() {
67 games_pkg_postinst
68 einfo "To play the game run:"
69 einfo " sof"
70 }

  ViewVC Help
Powered by ViewVC 1.1.20