updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / attica-git / PKGBUILD
blob04b5533d2c5994585b4ffcaa4191147c3a99a768
1 pkgname=attica-git
2 pkgver=20110615
3 pkgrel=1
4 pkgdesc='A library to access Open Collaboration Service providers'
5 arch=('i686' 'x86_64')
6 url='http://www.kde.org'
7 license=('LGPL')
8 depends=('qt')
9 makedepends=('cmake' 'git')
10 conflicts=('attica')
11 provides=('attica')
12 groups=('kde4-git')
14 _gitroot="git://anongit.kde.org/attica"
15 _gitname="attica"
17 build() {
18   cd $srcdir
19   msg "Connecting to the GIT server...."
20   
21   if [[ -d $srcdir/$_gitname ]] ; then
22     cd $_gitname
23     git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot
27   fi
28   
29   msg "GIT checkout done"
30   msg "Starting make..."
31   if [[ -d ${srcdir}/build ]]; then
32     msg "Cleaning the previous build directory..."
33     rm -rf ${srcdir}/build
34   fi
35   mkdir $srcdir/build
36   cd $srcdir/build
37   cmake $startdir/src/$_gitname -DCMAKE_BUILD_TYPE=debugfull \
38                 -DCMAKE_INSTALL_PREFIX=/usr
39   make
42 package() {
43   cd ${srcdir}/build
44   make DESTDIR=${pkgdir} install