1 # Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
6 pkgdesc="SVN version of Qt4 GUI for Subversion."
8 url="http://ar.oszine.de/projects/qsvn"
10 depends=('qt4' 'subversion')
11 makedepends=('cmake' 'sed')
18 _svntrunk=http://www.anrichter.net/svn/qsvn/trunk
24 if [ -d $_svnmod/.svn ]; then
25 (cd $_svnmod && svn up -r $pkgver)
27 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
30 msg "SVN checkout done or server timeout"
31 msg "Starting make..."
33 rm -r "${srcdir}/$_svnmod-build"
34 cp -r "${srcdir}/$_svnmod" "${srcdir}/$_svnmod-build"
36 cd "${srcdir}/$_svnmod-build/src"
38 sed -i 's/qmake-qt4/qmake/' CMakeLists.txt || return 1
39 sed -i 's/moc-qt4/moc/' CMakeLists.txt || return 1
40 sed -i 's/uic-qt4/uic/' CMakeLists.txt || return 1
42 cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX:PATH=/usr . || return 1
44 make DESTDIR="${pkgdir}" install