desktop/akonadi-google-git/PKGBUILD
2011-07-22 18:02:15 +00:00

47 lines
978 B
Bash

pkgname=akonadi-google-git
pkgver=20110628
pkgrel=1
pkgdesc="Akonadi-google is an implementation of GData API to access GoogleData resources"
arch=('i686' 'x86_64')
url="http://kde.org"
license=('GPL')
depends=('kdepimlibs' 'kde-workspace' 'qjson' 'libxslt')
makedepends=('git' 'cmake' 'automoc4' 'boost')
provides=('akonadi-googledata')
conflicts=('akonadi-googledata')
_gitroot="git://anongit.kde.org/akonadi-google"
_gitname="akonadi-googledata"
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/build"
mkdir "$srcdir/build"
cd "$srcdir/build"
cmake ../${_gitname} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd "$srcdir/build"
make DESTDIR="$pkgdir" install
}