updated on Tue Jan 10 08:08:34 UTC 2012
[aur-mirror.git] / kdeplasma-applets-lionmail-git / PKGBUILD
blobd373f842728f3708faea032883e5796add63c5dd
1 # Maintainer: Andrea Scarpino <andrea@archlinux.org>
3 pkgname=kdeplasma-applets-lionmail-git
4 pkgver=20110328
5 pkgrel=1
6 pkgdesc="A Plasma widget displaying new and important email"
7 arch=('i686' 'x86_64')
8 url="https://projects.kde.org/projects/playground/base/plasma-lionmail/"
9 license=('GPL')
10 depends=('kdepim-runtime')
11 makedepends=('git' 'cmake' 'automoc4' 'boost')
12 provides=('kdeplasma-applets-lionmail')
13 conflicts=('kdeplasma-applets-lionmail' 'plasma-applet-lionmail')
15 _gitroot="git://anongit.kde.org/plasma-lionmail.git"
16 _gitname="plasma-lionmail"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/build"
33   mkdir "$srcdir/build"
34   cd "$srcdir/build"
36   cmake ../${_gitname} \
37     -DCMAKE_BUILD_TYPE=Release \
38     -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
39   make
42 package() {
43   cd "$srcdir/build"
44   make DESTDIR="$pkgdir" install