updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / kdevelop-extra-plugins-qmake-git / PKGBUILD
blobb46c6c412f39b8d4c6dbb1df945947793a85ed4b
1 # Maintainer: Radu Andries <admiral0@tuxfamily.org>
2 pkgname=kdevelop-extra-plugins-qmake-git
3 pkgver=20110128
4 pkgrel=1
5 pkgdesc="Qmake Projects for kdevelop. Experimental plugin"
6 arch=('i686' 'x86_64' 'arm')
7 url="http://projects.kde.org/projects/extragear/kdevelop/experimental/kdev-qmake"
8 license=('GPL')
9 depends=('kdevelop-git' 'kdevelop-pg-qt-git')
10 makedepends=('git' 'cmake')
12 _gitroot="git://anongit.kde.org/kdev-qmake"
13 _gitname="kdev-qmake"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot $_gitname
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   cd "$srcdir/$_gitname"
30   rm -rf build
31   mkdir build
32   cd build
33   cmake -DCMAKE_INSTALL_PREFIX=/usr ..
34   make
37 package() {
38   cd "$srcdir/$_gitname/build"
39   make DESTDIR="$pkgdir/" install
40   rm -rf "$pkgdir/usr/share/apps/kdevappwizard"
41