1 # Contributor: Eric Belanger <eric@archlinux.org>
2 # Maintainer: Luca Bennati <lucak3 AT gmail DOT com>
7 pkgdesc="KDE file comparator/merge tool. SVN version"
9 url="http://kdiff3.sourceforge.net/"
11 depends=('kdebase-runtime')
12 makedepends=('cmake' 'automoc4' 'kdebase-lib' 'docbook-xml' 'subversion')
13 optdepends=('kdebase-lib: for the plugin')
16 install=kdiff3.install
18 _svntrunk=https://kdiff3.svn.sourceforge.net/svnroot/kdiff3/trunk/kdiff3
23 msg "Connecting to SVN server...."
25 if [[ -d "${_svnmod}/.svn" ]]; then
26 (cd "${_svnmod}" && svn up -r "${pkgver}")
28 svn co "${_svntrunk}" --config-dir ./ -r "${pkgver}" "${_svnmod}"
30 msg "SVN checkout done or server timeout"
32 msg "Configuring source..."
33 mkdir -p build && cd build
34 cmake "../${_svnmod}" \
35 -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
37 msg "Starting build..."
44 make DESTDIR="${pkgdir}/" install
47 # vim:set ts=2 sw=2 et: