updated on Tue Jan 24 16:10:37 UTC 2012
[aur-mirror.git] / kcheckgmail-git / PKGBUILD
blob4111e5b0ecde890c4d19e5d3144dd9e1ddb1c90e
1 # Maintainer: Todd Partridge <todd.partridge@gmail.com>
3 pkgname=kcheckgmail-git
4 pkgver=20091208
5 pkgrel=1
6 pkgdesc="KDE 4 systray application that notifies when new email is received in a Gmail account"
7 arch=('i686' 'x86_64')
8 url="http://kcheckgmail.sourceforge.net/"
9 license=('GPL')
10 depends=('kdelibs>=4.1.2' 'qt>=4.5')
11 makedepends=('gcc' 'cmake' 'automoc4' 'git' 'gettext')
12 md5sums=()
14 _gitroot="git://git.debian.org/users/lpereira-guest/kcheckgmail.git"
15 _gitname="kcheckgmail-kde4"
17 build(){
19   cd $srcdir
21   msg "Connecting to $_gitroot..."
22   if [[ -d $_gitname ]]; then
23     (cd $_gitname && git pull origin)
24     msg2 "Local files updates"
25   else
26     git clone $_gitroot $_gitname
27     cd $_gitname
28     git checkout -b kde4-port origin/kde4-port
29     msg2 "Git checkout done"
30   fi
32   install -d build && cd build
33   cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
34   DCMAKE_BUILD_TYPE=debugfull ..
35   make || return 1
36   make DESTDIR="$pkgdir/" install || return 1