Below is my bash script to install/update. If you want to download the shell script I have uploaded it here.
#!/bin/bash
co_compile_install()
{
DIR=$1
PARAMS=$2
COMMAND=$3
echo "Installing $DIR"
# bash check if directory exists
if [ -d $DIR ]; then
echo "Directory exists - UPDATING"
cd $DIR
svn update
else
echo "Directory does not exists - CHECKING OUT"
svn checkout "http://svn.gnome.org/svn/$DIR/trunk" "$DIR"
cd $DIR
fi
if [ -n $COMMAND ]
then
eval $COMMAND
fi
./autogen.sh
./configure --prefix=/opt/gimp-svn $PARAMS && make && make install
cd ..
}
apt-get install automake1.7
# GLIB
co_compile_install "glib"
export PATH=/opt/gimp-svn/bin:$PATH
export LD_LIBRARY_PATH=/opt/gimp-svn/lib
export PKG_CONFIG_PATH=/opt/gimp-svn/lib/pkgconfig
# GTK
co_compile_install "gtk+" "--with-xinput=yes --disable-gtk-doc" "sed -r 's#(automake|aclocal)-1.7#\1#g' -i autogen.sh"
co_compile_install "gtk+" "--with-xinput=yes --disable-gtk-doc"
# BABL
co_compile_install "babl"
# GEGL
co_compile_install "gegl" "" "sed -r 's:#include:#include :g' -i operations/external/ff-load.c"
export PATH=/opt/gimp-svn/bin:$PATH
export LD_LIBRARY_PATH=/opt/gimp-svn/lib
export PKG_CONFIG_PATH=/opt/gimp-svn/lib/pkgconfig
# GIMP
co_compile_install "gimp" "--enable-gimp-remote --prefix=/opt/gimp-svn/ --program-suffix=-svn --with-gimpdir=.gimp-svn"
1 comment:
Hello, thank’s for this script.
I tried it since several days, but can’t launch gimp-2.7-svn. Is it a problem here (karmic 64) or just because it’s the devel version ?
Can you add something in your script that don’t build the package if there’s no new svn version ?
Regard,
Olivier.
Post a Comment