4 pkgdesc='KDE document viewer'
8 depends=('kdebase4-runtime-git' 'qimageblitz' 'poppler-qt' 'chmlib' \
9 'djvulibre' 'ebook-tools' 'libspectre')
10 makedepends=('git' 'automoc4' 'cmake')
11 conflicts=('kdegraphics-okular')
12 provides=('kdegraphics-okular')
15 _gitroot="git://anongit.kde.org/okular.git"
22 msg "Connecting to the GIT server...."
24 if [[ -d $srcdir/$_gitname ]] ; then
27 msg "The local files are updated."
32 msg "GIT checkout done"
33 msg "Starting make..."
34 if [[ -d ${srcdir}/${_gitname}-build ]]; then
35 msg "Cleaning the previous build directory..."
36 rm -rf ${srcdir}/${_gitname}-build
38 mkdir $srcdir/$_gitname-build
39 cd $srcdir/$_gitname-build
40 cmake $startdir/src/$_gitname -DCMAKE_BUILD_TYPE=Release \
41 -DCMAKE_INSTALL_PREFIX=/usr
46 cd ${srcdir}/$_gitname-build
47 make DESTDIR=${pkgdir} install