summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2012-07-02 20:55:21 +0000
committerJulian Ospald <hasufell@gentoo.org>2012-07-02 20:55:21 +0000
commiteedfa10fa7416db1373399468a3c53710eacf900 (patch)
tree7950b3454870dd8a3ee0643f426bcc1e8df05762 /games-rpg
parentold (diff)
downloadhistorical-eedfa10fa7416db1373399468a3c53710eacf900.tar.gz
historical-eedfa10fa7416db1373399468a3c53710eacf900.tar.bz2
historical-eedfa10fa7416db1373399468a3c53710eacf900.zip
install arx-data-copy script to support steam/windows installations
Package-Manager: portage-2.2.0_alpha114/cvs/Linux x86_64
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/arx-libertatis/ChangeLog9
-rw-r--r--games-rpg/arx-libertatis/Manifest19
-rw-r--r--games-rpg/arx-libertatis/arx-libertatis-1.0.2-r1.ebuild (renamed from games-rpg/arx-libertatis/arx-libertatis-1.0.2.ebuild)9
-rw-r--r--games-rpg/arx-libertatis/files/arx-data-copy108
4 files changed, 133 insertions, 12 deletions
diff --git a/games-rpg/arx-libertatis/ChangeLog b/games-rpg/arx-libertatis/ChangeLog
index 376f08942ef3..48ce647a3ed5 100644
--- a/games-rpg/arx-libertatis/ChangeLog
+++ b/games-rpg/arx-libertatis/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-rpg/arx-libertatis
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/arx-libertatis/ChangeLog,v 1.1 2012/06/29 21:47:41 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/arx-libertatis/ChangeLog,v 1.2 2012/07/02 20:55:21 hasufell Exp $
+
+*arx-libertatis-1.0.2-r1 (02 Jul 2012)
+
+ 02 Jul 2012; Julian Ospald <hasufell@gentoo.org>
+ -arx-libertatis-1.0.2.ebuild, +arx-libertatis-1.0.2-r1.ebuild,
+ +files/arx-data-copy:
+ install arx-data-copy script to support steam/windows installations
*arx-libertatis-1.0.2 (29 Jun 2012)
diff --git a/games-rpg/arx-libertatis/Manifest b/games-rpg/arx-libertatis/Manifest
index b514c5e71ed7..d9139954ce3c 100644
--- a/games-rpg/arx-libertatis/Manifest
+++ b/games-rpg/arx-libertatis/Manifest
@@ -1,19 +1,20 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
+AUX arx-data-copy 3089 RMD160 e865eccf0b06bb89ad0576d5a6d3ea5d7ac03523 SHA1 9bba016aecc77fbf78de49743fff73846b6e75af SHA256 d1c0e3ecad4c13d9e89aa5d23dc50488f59902b89a168345bdbf35b49f7953e5
AUX arx-libertatis-1.0.2-gentoo.patch 2009 RMD160 0f134e5c9db796456380b850a75aef892b34537d SHA1 4d97655a5ace73df5e955d20367eb96967848aa6 SHA256 99ee2ac74a12adf7d614a1561e4eeced9adc5f6498c613e6e3cf6455913c333f
DIST arx-libertatis-1.0.2.tar.xz 912096 RMD160 dce30c0a172758ae27e68883f5556fe2492d0300 SHA1 7295564eb93a8282546d02f9f75b18edfc235d63 SHA256 cd40510563f93149f237df55d373900f85eb05c9cc5731efe4d173f314d4fadd
-EBUILD arx-libertatis-1.0.2.ebuild 2129 RMD160 5618a8beec7ee35d9dd549a249009d8d9c4daada SHA1 90c6423367c031e94ad411aaed21b2e3259a29f9 SHA256 6837c3f2d96ee9df5e4e4d449bf0df60c4a0bdbd44cdc3c76f389d7c02e146b2
-MISC ChangeLog 420 RMD160 b60d4a5c5270fb4e9efbfae71b52817c62e6aba8 SHA1 65cc0abfe684ea8b3527336d15daa43a3307b7cf SHA256 594178490f30e471f672a7d15675ba8062dfd293caac041760b6a2c5b3a47638
+EBUILD arx-libertatis-1.0.2-r1.ebuild 2373 RMD160 2c401e3a297853e20094e5e106a9f4f519fcc9d8 SHA1 1c7bcbe5bf4ed4592edf65b71c176ea90cda9926 SHA256 c223751e1503cb558cbeb06342b47489e410126c4ba1c481d8a00fbb0de4fb1f
+MISC ChangeLog 671 RMD160 40a4ea2c28bc6fec6f2ac6f7dbf5618abd985b3d SHA1 e6a0e4f0b81e087c88b683f85b5b7f4fa941eb75 SHA256 ffc71efd50308f4c05b331ec5cea5c0684a5dd29129dc9fd784e2318f7af68cf
MISC metadata.xml 952 RMD160 575c372defdae95897f8d47b4f9c83e3a4e4c5a5 SHA1 0958f2ac80a3484d85057647bc75574ac74554cb SHA256 b74747eda1686586d9c7fbeaf3f52102af43f468704707c5702670caa5e03aed
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQEcBAEBAgAGBQJP7iGyAAoJEFpvPKfnPDWzPuMH/RMRjZiAPsuPNnf+rhl9Y0f0
-vjL/wGqc9+2wTZWoKpYddoK/gCzO/aFlO7bAtwCVeyNnZG/pPQc0Jj/PeFdYGrC5
-8aewRBorwoUCmlsoLWSEb5ZtJzz01bLczSmt9jnPc+z/u6u76zxDErQKex9axU6u
-8/G4Hf0PRlURM0VUm2dxR6dT+vHK9ShyCwsvFsY76JExrW0Q/Z9GrN5bzx9ES3LK
-gM+p5w+3j3m5HRiyEKKKk6V0X0Q9dQYREvJs64SKWbk9GmVWOesZTgCH4G8Dnd60
-ePyplOyWB5yiJVPD2jmc1pYy77E6Bsb6/EVWjoOtJGKSginYcRmhXSZGZeT9F3o=
-=NPlf
+iQEcBAEBAgAGBQJP8goAAAoJEFpvPKfnPDWzzt0H/0IhHqQmDNf7MzhYo9/ZjuM3
+DRMcsXhl90eK0gf3ZLjgu5lyF7V75wFiJTcVl+gea7R1t24RygVGOPz9Y1Q317kY
+kkhB0lRDt4eY0OffZNxAJIfBP6KKBrRAAjItOb1nBAazKs3BcExOk1TJsK9lWy+5
+iwf3YjZYrFZ2VpF13mgszfsnq0cYGatuKz6VQlsnAoukiIhYpeSa/FVcZfZjxNmA
+YyFqRBWDAeruBoCjUqv4KVIrX4rYdy01U3+a9te1yIM7fqJD6IneenpkpAAHKG89
+1mY1wNvlTAjp5VjCl/5DUQroyz0Y7Ls5rRjNKOfysqzqL7xy8bHacdX7azohlB4=
+=bRTf
-----END PGP SIGNATURE-----
diff --git a/games-rpg/arx-libertatis/arx-libertatis-1.0.2.ebuild b/games-rpg/arx-libertatis/arx-libertatis-1.0.2-r1.ebuild
index 570d0d2bdf78..b10a835c74bd 100644
--- a/games-rpg/arx-libertatis/arx-libertatis-1.0.2.ebuild
+++ b/games-rpg/arx-libertatis/arx-libertatis-1.0.2-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/arx-libertatis/arx-libertatis-1.0.2.ebuild,v 1.1 2012/06/29 21:47:41 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/arx-libertatis/arx-libertatis-1.0.2-r1.ebuild,v 1.1 2012/07/02 20:55:21 hasufell Exp $
EAPI=4
@@ -63,6 +63,7 @@ src_compile() {
src_install() {
cmake-utils_src_install
+ dogamesbin "${FILESDIR}"/arx-data-copy
prepgamesdirs
}
@@ -76,7 +77,11 @@ pkg_postinst() {
if ! use cdinstall || ! use demo ; then
elog "You need the demo or full game data."
elog "See http://wiki.arx-libertatis.org/Getting_the_game_data for more information"
- elog "or enable cdinstall or demo useflag."
+ elog
+ elog "You might want to enable cdinstall or demo useflag."
+ elog
+ elog "If you have already installed the game or use the STEAM version,"
+ elog "run \"${GAMES_BINDIR}/arx-data-copy /path/to/installed-arx /usr/local/share/games/arx\"."
fi
games_pkg_postinst
diff --git a/games-rpg/arx-libertatis/files/arx-data-copy b/games-rpg/arx-libertatis/files/arx-data-copy
new file mode 100644
index 000000000000..719e14b01ed8
--- /dev/null
+++ b/games-rpg/arx-libertatis/files/arx-data-copy
@@ -0,0 +1,108 @@
+#!/bin/sh
+
+die() {
+ echo "$@" >&2
+ exit 1
+}
+
+# Handle arguments
+if [ "$1" != "--help" ] && [ "$1" != "-h" ] ; then
+ SOURCE="$(readlink -f "$1")"
+else
+ die "\
+Usage: install-copy path/to/ArxFatalis/ [output_dir]
+
+This script can be used to copy the game data from a fully patched
+Arx Fatalis 1.21 install (for example a Steam download).
+Files will be renamed as needed by Arx Libertatis.
+
+You can get the 1.21 patch from http://www.arkane-studios.com/uk/arx_downloads.php"
+fi
+
+if [ "$2" = "" ] ; then
+ DESTDIR="$(pwd)"
+else
+ DESTDIR="$(readlink -f "$2")"
+fi
+
+cd "$(dirname "$0")"
+
+echo "Installing Arx Fatalis data from \"$SOURCE\" to \"$DESTDIR\".
+"
+
+# Check for required files
+[ -d "$SOURCE" ] || die "$SOURCE does not exist"
+
+# files
+set -- \
+ "data2.pak" \
+ "graph/interface/misc/arkane.bmp" \
+ "graph/interface/misc/quit1.bmp" \
+ "graph/obj3d/textures/fixinter_barrel.jpg" \
+ "graph/obj3d/textures/fixinter_bell.bmp" \
+ "graph/obj3d/textures/fixinter_metal_door.jpg" \
+ "graph/obj3d/textures/fixinter_public_notice.bmp" \
+ "graph/obj3d/textures/item_bread.bmp" \
+ "graph/obj3d/textures/item_club.jpg" \
+ "graph/obj3d/textures/item_long_sword.jpg" \
+ "graph/obj3d/textures/item_mauld_sabre.jpg" \
+ "graph/obj3d/textures/item_mauldsword.jpg" \
+ "graph/obj3d/textures/item_mirror.jpg" \
+ "graph/obj3d/textures/item_ring_casting.bmp" \
+ "graph/obj3d/textures/item_rope.bmp" \
+ "graph/obj3d/textures/item_spell_sheet.jpg" \
+ "graph/obj3d/textures/item_torch2.jpg" \
+ "graph/obj3d/textures/item_torch.jpg" \
+ "graph/obj3d/textures/item_zohark.bmp" \
+ "graph/obj3d/textures/l7_dwarf_[wood]_board08.jpg" \
+ "graph/obj3d/textures/l7_dwarf_[wood]_board80.jpg" \
+ "graph/obj3d/textures/npc_dog.bmp" \
+ "graph/obj3d/textures/npc_pig.bmp" \
+ "graph/obj3d/textures/npc_pig_dirty.bmp" \
+ "graph/obj3d/textures/npc_rat_base.bmp" \
+ "graph/obj3d/textures/npc_rat_base_cm.bmp" \
+ "graph/obj3d/textures/npc_worm_body_part1.jpg" \
+ "graph/obj3d/textures/npc_worm_body_part2.bmp" \
+ "graph/obj3d/textures/[wood]_light_door.jpg" \
+ "manual.pdf" \
+ "map.pdf" \
+ "misc/arx_default.ttf" \
+ "misc/arx_russian.ttf" \
+ "misc/arx_taiwanese.ttf" \
+ "misc/logo.avi" \
+ "misc/logo.bmp" \
+ "sfx.pak" \
+ "data.pak" \
+ "loc.pak" \
+ "speech.pak"
+
+# Install required files
+ret=0
+for f in "$@" ; do
+ DEST="$DESTDIR/$f"
+ DIRNAME="$(dirname "$f")"
+ FILE="$(basename "$f" | sed 's/[^[:alnum:]_-]/\\&/g')"
+ FILE_DEFAULT="$(echo "$FILE" | sed 's/^\(.*\)\(\.[^.]*\)$/\1_default\2/g')"
+
+ # don't screw permissions on existent folders
+ [ -e "$DESTDIR/$DIRNAME" ] || { mkdir -pv "$DESTDIR/$DIRNAME"
+ chmod 755 "$DESTDIR/$DIRNAME" ; }
+
+ find "$SOURCE" -iname "$FILE" -exec cp -fv '{}' "$DEST" \;
+ find "$SOURCE" -iname "$FILE_DEFAULT" -exec cp -fv '{}' "$DEST" \;
+
+ chmod 644 "$DEST" || { missing_files="$missing_files
+ $f" ; return 1 ; }
+
+ ret="$(($ret + $?))"
+done
+
+[ "$ret" = "0" ] || die "
+$ret errors and following files not installed:$missing_files
+
+You either have incorrect permissions on \"${DESTDIR}\"
+or don't have patch 1.21 installed. Fix it and rerun this script."
+
+echo
+echo "Now run:
+ arx --data-dir \"$DESTDIR\""