[Digikam-users] Kubuntu

Dotan Cohen dotancohen at gmail.com
Fri Sep 5 21:34:43 BST 2008


2008/8/27 Oliver Dörr <oliver at doerr-privat.de>:
> Hi Dotan,
>
> does your script also covers the prereqs?
>
> If yes, than i'm very Interessted in it

Sorry for the late reply, Real Life (tm) was getting in the way. Here
is the script, but I make no apologies for bad coding practices!
Improvements and suggestions welcome!

#!/bin/bash

# get sudo permission
sudo ls

# ### Modifiy according to your destination:
DIGIKAMKDE4=/usr/lib/kde4
export PATH=/usr/lib/kde4/bin/:$PATH

export LANG=C
export KDEDIRS=$DIGIKAMKDE4:/usr/lib/kde4/
export LD_LIBRARY_PATH=$DIGIKAMKDE4/lib:$LD_LIBRARY_PATH
export LDPATH=$DIGIKAMKDE4/lib:$LDPATH
export PATH=$DIGIKAMKDE4/bin:$PATH
export PKG_CONFIG_PATH=$DIGIKAMKDE4/lib/pkgconfig


##Checkout KDE4 version

echo "--start--"

# exiv2
wget http://www.exiv2.org/exiv2-0.17.1.tar.gz && \
tar xzf exiv2-0.17.1.tar.gz && \
cd exiv2-0.17.1 && \
echo "--exiv2-configure--"
./configure --prefix=$DIGIKAMKDE4 && \
echo "--exiv2-make--"
make && \
echo "--exiv2-make-install--"
sudo make install && \

# discovered that lensfun needs to be in exiv2 directory

# http://lensfun.berlios.de
svn checkout svn://svn.berlios.de/lensfun/trunk && \
echo "--lensfun-configure--"
./configure --prefix=$DIGIKAMKDE4 && \
echo "--lensfun-make-install--"
sudo make install && \

# cd out of exiv2 directory
cd .. && \


# kdegraphics libs svn source for KDE4
# (includes libkipi, libkdcraw, libkexiv2, libksane) :

echo "--kde-graphics--" && \
svn co -N svn://anonsvn.kde.org/home/kde/trunk/KDE/kdegraphics && \
cd kdegraphics && \
echo "--kde-graphics-- up libs" && \
svn up libs && \
echo "--kde-graphics-- up cmake" && \
svn up cmake && \

# Checkout the latest digiKam and Kipi-plugins SVN source for KDE4:

echo "--latest digiKam and Kipi-plugins--" && \
cd .. && \
svn co -N svn://anonsvn.kde.org/home/kde/trunk/extragear/graphics && \
cd graphics && \
echo "--latest digiKam and Kipi-plugins-- up digikam" && \
svn up digikam && \
echo "--latest digiKam and Kipi-plugins-- up kipi-plugins" && \
svn up kipi-plugins && \
echo "--latest digiKam and Kipi-plugins-- up cmake" && \
svn up cmake && \

# Installation for KDE4 in your system (/opt/kde4)
cd .. && \


#To compile the source code under linux you have to give these
commands in the source code folders. You should use a seperate build
folder to help cleaning up sources if something goes wrong.

echo "--to compile soure--" && \
mkdir -p /home/hardy/digikam-notes/kdegraphics/build && \
cd /home/hardy/digikam-notes/kdegraphics/build && \
# next line I modified
echo "--to compile soure--cmake" && \
cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=$DIGIKAMKDE4
../../kdegraphics && \
echo "--to compile soure--make" && \
make && \
echo "--to compile soure--make install" && \
sudo make install && \



#Now for digikam itself:

echo "--digikam--" && \
mkdir -p /home/hardy/digikam-notes/graphics/build && \
cd /home/hardy/digikam-notes/graphics/build && \
echo "--digikam--cmake" && \
cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=$DIGIKAMKDE4
../../graphics && \
echo "--digikam--make" && \
make && \
echo "--digikam--make install" && \
sudo make install && \

echo "--done!!!--"



-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

ä-ö-ü-ß-Ä-Ö-Ü


More information about the Digikam-users mailing list