/[gentoo-x86]/games-rpg/arx-fatalis-demo/arx-fatalis-demo-0.ebuild
Gentoo

Contents of /games-rpg/arx-fatalis-demo/arx-fatalis-demo-0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Jan 30 19:08:28 2013 UTC (4 months, 2 weeks ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
Stable for x86, wrt bug #428222

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-rpg/arx-fatalis-demo/arx-fatalis-demo-0.ebuild,v 1.3 2012/08/11 10:20:19 ago Exp $
4
5 EAPI=4
6
7 inherit eutils games
8
9 DESCRIPTION="Arx Fatalis demo"
10 HOMEPAGE="http://www.arkane-studios.com/uk/arx.php"
11 SRC_URI="arx_demo_english.zip"
12
13 LICENSE="ArxFatalisDemo"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16 IUSE=""
17 RESTRICT="fetch"
18
19 RDEPEND="games-rpg/arx-libertatis"
20 DEPEND="app-arch/cabextract
21 app-arch/unzip"
22
23 S=${WORKDIR}
24
25 pkg_nofetch() {
26 einfo "Please find and download ${SRC_URI} and put it into ${DISTDIR}."
27 einfo "There is a list of possible download locations at"
28 einfo "http://wiki.arx-libertatis.org/Getting_the_game_data#Demo"
29 }
30
31 src_unpack() {
32 unpack ${A}
33 cabextract Setup1.cab || die "cabextract failed"
34 cabextract Setup2.cab || die "cabextract failed"
35 cabextract Setup3.cab || die "cabextract failed"
36 }
37
38 src_install() {
39 insinto "${GAMES_DATADIR}/${PN}"
40 doins -r *.pak bin/*.pak
41 insinto "${GAMES_DATADIR}/${PN}/misc"
42 doins bin/Logo.bmp bin/Arx.ttf
43
44 # convert to lowercase
45 cd "${D}"
46 find . -type f -exec sh -c 'echo "${1}"
47 lower="`echo "${1}" | tr [:upper:] [:lower:]`"
48 [ "${1}" = "${lower}" ] || mv "${1}" "${lower}"' - {} \;
49
50 make_desktop_entry "arx --data-dir=${GAMES_DATADIR}/arx-fatalis-demo" \
51 "Arx Fatalis Demo" arx-libertatis
52
53 prepgamesdirs
54 }

  ViewVC Help
Powered by ViewVC 1.1.20