updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / kregexpeditor-svn / PKGBUILD
blob9874a5f77c1ff7f5d4920c9a8adfa294aa889c83
1 # Contributor: Massimiliano Torromeo <Massimiliano DOT Torromeo AT gmail DOT com>
2 pkgname=kregexpeditor-svn
4 _svntrunk=svn://anonsvn.kde.org/home/kde/trunk/playground/utils/kregexpeditor/
5 _svnmod=kregexpeditor
7 pkgver=1218601
8 pkgrel=2
9 pkgdesc="KDE editor for regular expressions"
10 arch=(i686 x86_64)
11 url="http://websvn.kde.org/trunk/playground/utils/kregexpeditor/"
12 license=('GPL')
13 depends=('kdebase-runtime')
14 makedepends=('subversion' 'cmake' 'automoc4')
15 install=$_svnmod.install
17 build() {
18         cd $srcdir
19         if [ -d $_svnmod/.svn ]; then
20                 (cd $_svnmod && svn up)
21         else
22                 svn co $_svntrunk $_svnmod
23         fi
25         msg "SVN checkout done or server timeout"
26         msg "Starting make..."
28         rm -rf $_svnmod-build
29         mkdir $_svnmod-build
30         cd $_svnmod-build
32         cmake $srcdir/$_svnmod \
33                 -DCMAKE_INSTALL_PREFIX=/usr \
34                 -DCMAKE_BUILD_TYPE=Release
35         make
38 package() {
39         cd "$srcdir/$_svnmod-build"
40         make DESTDIR="$pkgdir" install