1 # Contributor: Massimiliano Torromeo <Massimiliano DOT Torromeo AT gmail DOT com>
5 pkgdesc="Pate is a plugin for Kate that allows you to create new plugins in Python for Kate. (Git version for KDE4)"
7 url="http://paul.giannaros.org/pate/"
9 depends=('kdesdk-kate' 'kdebindings-python')
10 makedepends=('git' 'python2-sip')
12 _gitroot="git://github.com/mtorromeo/pate.git"
17 msg "Connecting to GIT server...."
19 if [ -d $_gitname ] ; then
20 cd $_gitname && git pull origin
21 msg "The local files are updated."
23 git clone --depth=1 $_gitroot
26 msg "GIT checkout done or server timeout"
27 msg "Starting make..."
29 rm -rf "$srcdir/$_gitname-build"
30 cp -R "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31 cd "$srcdir/$_gitname-build"
33 cmake . -DPYTHON_EXECUTABLE=/usr/bin/python2 -DCMAKE_INSTALL_PREFIX=/usr
38 cd "$srcdir/$_gitname-build"
39 install -m 755 -d "$pkgdir/usr/share/apps/kate/pate"
40 cp -rv "$srcdir/$_gitname-build/src/plugins/"* "$pkgdir/usr/share/apps/kate/pate"
41 make DESTDIR="$pkgdir/" install