Ubuntu install/uninstall scripts for tmw stable 0.0.28.1

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
User avatar
bigglesworth
Novice
Novice
Posts: 211
Joined: 11 Nov 2007, 03:23
Location: Land of Ooo

Ubuntu install/uninstall scripts for tmw stable 0.0.28.1

Post by bigglesworth »

These scripts are from reading Khronos' thread (thank you!), changing version numbers, and adding a libsdl* to the install.
READ THIS FIRST -> !!! http://forums.themanaworld.org/viewtopic.php?f=7&t=5498

THIS IS NOT A SUPPORT THREAD!!! THIS IS ONLY FOR YOUR INFORMATION!!! I WON'T HELP YOU!!! ( Because I am incompetent and lazy! :-p )

To install TMW 0.0.28.1 in ubuntu 8.10, save the following code as 'tmw-install.sh', make it executable with 'chmod u+x tmw-install.sh' and then run it with './tmw-install.sh'

Code: Select all

# This is the tmw STABLE install script, for version 0.0.28.1 of tmw, and
# 0.8.1 of guichan.
# This script is especially made for Ubuntu/Kubuntu/Xubuntu Hardy Heron & Intrepid Ibex
# This script is licensed under the GPL v.2
# The contributors and creators to/of this script disclaim
# all warranties and liability, and are not responsible for damages/losses
# of any kind.
# bash, wget, and tar are required for this script.

sudo apt-get install build-essential libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-net1.2-dev libsdl1.2-dev libphysfs-dev zlib1g-dev libxml2-dev libcurl4-gnutls-dev libsdl-ttf2.0-dev
mkdir ~/.programs
mkdir ~/.programs/tmw
mkdir ~/.programs/src
cd ~/.programs/src
wget http://guichan.googlecode.com/files/guichan-0.8.1.tar.gz
tar -vzxf guichan-0.8.1.tar.gz
cd guichan-0.8.1
./configure --prefix=$HOME/.programs/tmw
make
make install
cd ~/.programs/src
wget http://downloads.sourceforge.net/themanaworld/tmw-0.0.28.1.tar.gz
tar -vzxf tmw-0.0.28.1.tar.gz
cd tmw-0.0.28.1
export LDFLAGS="$LDFLAGS -L$HOME/.programs/tmw/lib"
export CPPFLAGS="$CPPFLAGS -I$HOME/.programs/tmw/include"
./configure --prefix=$HOME/.programs/tmw
make
make install
cd ~
To execute/ run, save the following code as 'tmw.sh', make it executable with 'chmod u+x tmw.sh' and then run it with './tmw.sh'

Code: Select all

# This is the tmw STABLE run script, for version 0.0.28.1 of tmw
# This script is licensed under the GPL v.2
# The contributors and creators to/of this script disclaim
# all warranties and liability, and are not responsible for damages/losses # of any kind.
# bash is required for this script.

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/.programs/tmw/lib &&
$HOME/.programs/tmw/bin/tmw
To uninstall/ remove, save the following code as 'tmw-uninstall.sh', make it executable with 'chmod u+x tmw-uninstall.sh' and then run it with './tmw-uninstall.sh'

Code: Select all

# This is the tmw STABLE uninstall script, for version 0.0.28.1 of tmw and 0.8.1 of guichan
# This script is especially made for Ubuntu/Kubuntu/Xubuntu Hardy Heron & Intrepid Ibex
# This script is licensed under the GPL v.2
# The contributors and creators to/of this script disclaim
# all warranties and liability, and are not responsible for damages/losses
# of any kind.
# bash and make are required for this script.

cd ~/.programs/src/tmw-0.0.28.1
make uninstall
cd ~/.programs/src/guichan-0.8.1
make uninstall
cd ~/.programs/src
rm -rf tmw-0.0.28.1
rm -rf tmw-0.0.28.1.tar.gz
rm -rf guichan-0.8.1
rm -rf guichan-0.8.1.tar.gz
User avatar
Bjørn
Manasource
Manasource
Posts: 1438
Joined: 09 Dec 2004, 18:50
Location: North Rhine-Westphalia, Germany
Contact:

Re: Ubuntu install/uninstall scripts for tmw stable 0.0.28.1

Post by Bjørn »

Note that for Ubuntu 8.10, there is no need to download and compile Guichan yourself. Just install the libguichan-dev 0.8.1 package.

Edit: Also, it would be better for most people to just request a backport of TMW 0.0.28.1 from Ubuntu Jaunty...
Post Reply