updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / pdiff-svn / PKGBUILD
blob085d552143349a556932331248e05a4c8ce839cc
1 # Contributor: Tai Chi Minh Ralph Eastwood <tcmreastwood@gmail.com>
2 pkgname=pdiff-svn
3 pkgver=53
4 pkgrel=2
5 pkgdesc="A perceptual difference utility for images."
6 arch=('i686' 'x86_64')
7 url="http://pdiff.sourceforge.net/"
8 license=('GPL')
9 makedepends=('svn' 'cmake')
10 depends=('freeimage')
11 conflicts=('pdiff')
12 provides=('pdiff')
13 source=()
14 md5sums=()
16 _svntrunk="https://pdiff.svn.sourceforge.net/svnroot/pdiff/trunk"
17 _svnmod="pdiff-svn"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to SVN server...."
23   if [ -d $_svnmod/.svn ]; then
24     (cd $_svnmod && svn up -r $pkgver)
25   else
26     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27   fi
29   msg "SVN checkout done or server timeout"
31   rm -rf $_svnmod-build
32   svn export $_svnmod $_svnmod-build
33   cd "$srcdir/$_svnmod-build"
34   mkdir build
35   cd build
36   cmake -DCMAKE_INSTALL_PREFIX=/usr ..
37   make install DESTDIR=$pkgdir