Page 1 of 1

Ubuntu Repository

Posted: 22.12.2007, 00:03
by Christophe
I've set up a PPA repository with CVS builds of Celestia.

Add the following line to your /etc/apt/sources.list, or use your favorite APT frontend to add this repository.

Code: Select all

deb http://ppa.launchpad.net/cteyssier/ubuntu gutsy main


If you already have installed 1.4.1 from Ubuntu's repos, an update/upgrade will replace it with the latest CVS snapshot.

Otherwise install either of celestia, celestia-gnome or celestia-glut.

Binaries for i386 and amd64 are available for 7.10 (Gutsy), if you're using an older release let me know, PPA allows building packages from 6.04 to 8.04.

Posted: 23.01.2008, 22:06
by NIGHTCAST2000
Hi Christophe,
I would like to thank you very much for the PPA repository link:D .
I have put it in my Adfept-Manager,and downloaded it,and it is very nice,just one question,how did you get your CVS builds to show the CVS version on the splash-screen?

I have compiled CelestiaCVS in the past (both under Windows XP Professional and Kubuntu Hardy Heron Alpha 1 and 2),but I'm waiting for Celestia 1.5.0 to come out (which as far as I know will be very soon),and ihe repository gets switched over to SVN.

Regards,
NIGHTCAST2000

Posted: 23.01.2008, 22:07
by ajtribick
Cheers for this, much appreciated!

Posted: 23.01.2008, 22:20
by Christophe
The version string shown in the splash screen (and the about box too), is set by the AC_INIT macro in the configure.in file.

I'm using the following simple bash script which patches the CVS source and produces the .deb:
#!/bin/bash

#
# Celestia deb builder
#
# A cvs checkout is expected in ~/celestia-cvs
# A ~/debian directory must exist and hold a celestia.diff.gz patch
# (a copy of the latest diff.gz from http://epicycle.free.fr/ubuntu/ )
#

DATE=`date +'%Y%m%d'`
CUR_VER=1.4.1
VER=1.4.99-cvs$DATE

# update the CVS checkout
cd ~/celestia-cvs
cvs up -PAd
cd ..

# make a copy, and update the version number
if [ -d celestia_$DATE ] ; then rm -rf celestia_$DATE ; fi
cp -a celestia-cvs celestia_$DATE
cd celestia_$DATE
sed -e "s/\[$CUR_VER\]/[$VER]/" < configure.in > configure.in_ && \
rm configure.in && \
mv configure.in_ configure.in
if [ -f Makefile.am.wo ] ; then rm Makefile.am.wo ; fi

# generate the configure script, run it and generate the distribution
make -f Makefile.cvs
cd ~/celestia_$DATE
./configure --with-kde
touch Makefile.am.wo
make dist
cd

# rename distribution, move it under ~/debian/ and remove the work directory
mv celestia_$DATE/celestia-$VER.tar.gz debian/celestia_$VER.orig.tar.gz
rm -rf celestia_$DATE

# untar the distribution and apply the debian patch
cd debian
tar xvzf celestia_$VER.orig.tar.gz
cd celestia-$VER
zcat ../celestia.diff.gz | patch -p1

# update the version number in Changelog
# (otherwise debuild complains about unmatching version numbers)
cd debian
sed -e "1 s/\\(.*\\)(.*)\\(.*\\)/\\1($VER-0ubuntu1~ppa1)\\2/" < changelog > changelog_ && \
rm changelog && \
mv changelog_ changelog
cd ..

#
# you can apply other changes to debian/ or the sources here
#
# generate the packages
debuild -S -sa -kchris@teyssier.org
cd ..


The debuild command at the end produces only the source package and signs it with my key as required by PPA. Using debuild without any switches produces binary packages instead.

Posted: 23.01.2008, 22:41
by NIGHTCAST2000
Hi Christophe,
Thank you very much for the info,that is quite interesting.
Regards,
NIGHTCAST2000