updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / kmail-git / PKGBUILD
blob585ed1198b93573cd3b820e427e3c6e7d980dd36
1 pkgname=kmail-git
2 pkgver=20110725
3 pkgrel=1
4 arch=('i686' 'x86_64')
5 license=('GPL')
6 makedepends=('pkgconfig' 'cmake' 'automoc4' 'boost' 'kdepim4-runtime-git' 'libxss' 'pilot-link' 'kde-agent')
7 groups=('kde4-git')
9 _gitroot="git://anongit.kde.org/kdepim/kmail"
10 _gitname="kmail"
12 build() {
13   cd $srcdir
14   msg "Connecting to the GIT server...."
15   
16   if [[ -d $srcdir/$_gitname ]] ; then
17     cd $_gitname
18     git pull origin
19     msg "The local files are updated."
20   else
21     git clone $_gitroot
22   fi
23   
24   msg "GIT checkout done"
25   msg "Starting make..."
26   if [[ -d ${srcdir}/build ]]; then
27     msg "Cleaning the previous build directory..."
28     rm -rf ${srcdir}/build
29   fi
30   mkdir $srcdir/build
31   cd $srcdir/build
32   cmake $startdir/src/$_gitname -DCMAKE_BUILD_TYPE=debugfull \
33                 -DCMAKE_INSTALL_PREFIX=/usr \
34                 -DCMAKE_SKIP_RPATH=ON \
35                 -DKDEPIM_BUILD_MOBILE=OFF
37   make
40 package_kdepim4-kmail-git() {
41         pkgdesc='Mail Client'
42         depends=('kdepim4-libkdepim-git')
43         conflicts=('kdepim-kmail')
44         url="http://kde.org/applications/internet/kmail/"
45         install='kmail-git.install'
46         optdepends=('cyrus-sasl-plugins: CRAM-MD5 authentication')
47         for i in kmail doc/kmail kmailcvt ksendemail libksieve mailcommon \
48                 nepomuk_email_feeder ontologies templateparser kontact/plugins/kmail; do
49                 cd "${srcdir}"/build/${i}
50                 make DESTDIR="${pkgdir}" install
51         done
54 url="http://www.kde.org"
55 pkgdesc="KDE4 PIM Utilities"