mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 22:07:14 +08:00
47 lines
978 B
Bash
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
|
||
|
|
||
|
}
|
||
|
|