updated on Tue Jan 10 08:08:34 UTC 2012
[aur-mirror.git] / plasmate-git / PKGBUILD
blobf4ff3315367da751c4f59a31d653c7115455afaa
1 pkgname=plasmate-git
2 pkgver=20110323
3 pkgrel=1
4 pkgdesc='A small IDE taylored for development of Plasma components, such as Widgets, Runners, Dataengines.'
5 arch=('i686' 'x86_64')
6 url='http://www.kde.org'
7 license=('LGPL')
8 depends=('kdelibs' 'gpgme')
9 makedepends=('cmake' 'git' 'automoc4' 'boost')
11 _gitroot="git://anongit.kde.org/plasmate"
12 _gitname="plasmate"
14 build() {
16 cd $srcdir
17   msg "Connecting to the GIT server...."
18   
19   if [[ -d $srcdir/$_gitname ]] ; then
20     cd $_gitname
21     git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot
25   fi
26   
27   msg "GIT checkout done"
28   msg "Starting make..."
29   if [[ -d ${srcdir}/${_gitname}-build ]]; then
30     rm -rf ${srcdir}/${_gitname}-build
31   fi
33   mkdir $srcdir/$_gitname-build
35   cd $srcdir/$_gitname-build
37   cmake $startdir/src/$_gitname -DCMAKE_INSTALL_PREFIX=/usr
38   make
41 package() {
42   cd ${srcdir}/$_gitname-build
43   make DESTDIR=${pkgdir} install