Page 2 of 2

Re: Ubuntu packaging and PPA

PostPosted: 28 Apr 2011, 14:46
by jawCross
I updated Ubuntu packaging for OpenDungeons-0.4.8 and I'm uploading it to the PPA.

I also made step-by-step script to handle PPA-producing (it uses some other scripts, so it is not totally self-descriptive).
{l Code}: {l Select All Code}
#sources from git
git clone git://opendungeons.git.sourceforge.net/gitroot/opendungeons/opendungeons opendungeons-0.4.8
cd opendungeons-0.4.8
git checkout 0.4.8
rm -rf .gitignore .git

#data from released version
wget "http://downloads.sourceforge.net/project/opendungeons/Current%20Release/opendungeons-0.4.8_linux.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fopendungeons%2Ffiles%2FCurrent%2520Release%2F&ts=1303987790&use_mirror=mesh" -O release_0.4.8.tar.bz2
tar jxvf release_0.4.8.tar.bz2
rm release_0.4.8.tar.bz2
mv OD/levels/ OD/models/ OD/materials/ OD/music/ OD/sounds/ OD/gui .
mv OD/COPYING-media .
rm -rf OD

#logo used for menu icon
wget http://opendungeons.svn.sourceforge.net/viewvc/opendungeons/mediaSource/master/Logo/OpenDungeons-Logo.svg?revision=101 -O logo.svg

#Debian packaging
wget http://cc.oulu.fi/~rantalai/opendungeons/opendungeons_048_debian.tar.gz
tar zxvf opendungeons_048_debian.tar.gz
rm opendungeons_048_debian.tar.gz


##Now you can build deb-package locally
#sudo add-apt-repository ppa:andrewfenn/ogredev
#sudo apt-get update
#sudo apt-get install cmake build-essential libogremain-1.7.1-dbg libois-dev libogre-dev libcegui libcegui-dbg libcegui-dev libfreeimage3-dbg libsfml-dev libopenal-dev
#dpkg-buildpackage
##and install it
#sudo -i ../opendungeons_0.4.8_*.deb


##Or push source package to the ubuntu PPA builder
##You need working PPA with dependency ppa:andrewfenn/ogredev
##Script is just for making releases for multiple targets.
##  Basically it is debuild -S -sa ; dput -f "$PPA_address" *_source.changes
#wget http://cc.oulu.fi/~rantalai/opendungeons/send_to_ppa.sh
#chmod a+x send_to_ppa.sh
##modify script: maintainer, address of PPA and target-releases
#./send_to_ppa.sh



ISSUES/TODO:
Every users on same system are using shared conf/log-files. (I do not know OGRE enough to fix this).

Re: Ubuntu packaging and PPA

PostPosted: 28 Apr 2011, 15:10
by oln
Nice! Maybe we should add the debian package files to the repo, to make it even easier to build a package. I can give you access to it as well if you want to be able to do changes to it.
I will prioritise fixing having conf/log files stored in user dirs (as well as screenshots), so we can put the game in /usr/games rather than /opt.

Re: Ubuntu packaging and PPA

PostPosted: 28 Apr 2011, 15:28
by svenskmand
Awesome JawCross :) I have some script that will generate a source tarball, they will be pretty useful in combination with you script, they are located here.

Re: Ubuntu packaging and PPA

PostPosted: 08 May 2011, 17:34
by jawCross
Now Natty (Ubuntu 11.04) are also supported on PPA.

Re: Ubuntu packaging and PPA

PostPosted: 08 May 2011, 19:38
by svenskmand
Cool :), by the way could you use the scripts?