Ubuntu Repository

General discussion about Celestia that doesn't fit into other forums.
Topic author
Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 4 months
Location: Lyon (France)

Ubuntu Repository

Post #1by Christophe » 22.12.2007, 00:03

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.
Christophe

NIGHTCAST2000
Posts: 146
Joined: 09.10.2006
With us: 18 years 1 month

Post #2by NIGHTCAST2000 » 23.01.2008, 22:06

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
Motherboard:Asus Sabretooth 990FX
Processor: AMD Athlon II X3 46
Memory: 4 Gb DDR3 SDRAM
Graphics Card: Nvidia 560 GTX 1Gb
SoundCard: Asus onboard
Hardrive:Seagate Barracuda 1TB GB 7200rpm SATA 23Mb Cache

ajtribick
Developer
Posts: 1855
Joined: 11.08.2003
With us: 21 years 3 months

Post #3by ajtribick » 23.01.2008, 22:07

Cheers for this, much appreciated!

Topic author
Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 4 months
Location: Lyon (France)

Post #4by Christophe » 23.01.2008, 22:20

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.
Christophe

NIGHTCAST2000
Posts: 146
Joined: 09.10.2006
With us: 18 years 1 month

Post #5by NIGHTCAST2000 » 23.01.2008, 22:41

Hi Christophe,
Thank you very much for the info,that is quite interesting.
Regards,
NIGHTCAST2000
Motherboard:Asus Sabretooth 990FX
Processor: AMD Athlon II X3 46
Memory: 4 Gb DDR3 SDRAM
Graphics Card: Nvidia 560 GTX 1Gb
SoundCard: Asus onboard
Hardrive:Seagate Barracuda 1TB GB 7200rpm SATA 23Mb Cache


Return to “Celestia Users”