updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / kdiff3-svn / PKGBUILD
blob9f05a9ff3865cb4ecb6c619fed78be8c57e4ce7d
1 # Contributor: Eric Belanger <eric@archlinux.org>
2 # Maintainer: Luca Bennati <lucak3 AT gmail DOT com>
4 pkgname=kdiff3-svn
5 pkgver=126
6 pkgrel=1
7 pkgdesc="KDE file comparator/merge tool. SVN version"
8 arch=('i686' 'x86_64')
9 url="http://kdiff3.sourceforge.net/"
10 license=('GPL2')
11 depends=('kdebase-runtime')
12 makedepends=('cmake' 'automoc4' 'kdebase-lib' 'docbook-xml' 'subversion')
13 optdepends=('kdebase-lib: for the plugin')
14 provides=('kdiff3')
15 conflicts=('kdiff3')
16 install=kdiff3.install
18 _svntrunk=https://kdiff3.svn.sourceforge.net/svnroot/kdiff3/trunk/kdiff3
19 _svnmod=kdiff3
21 build() {
22   cd "${srcdir}"
23   msg "Connecting to SVN server...."
25   if [[ -d "${_svnmod}/.svn" ]]; then
26     (cd "${_svnmod}" && svn up -r "${pkgver}")
27   else
28     svn co "${_svntrunk}" --config-dir ./ -r "${pkgver}" "${_svnmod}"
29   fi
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..."
38   make
41 package() {
42   cd "${srcdir}/build"
44   make DESTDIR="${pkgdir}/" install
47 # vim:set ts=2 sw=2 et: