pkgname=libkgapi pkgver=5.1.0 pkgrel=1 pkgdesc="A KDE-based library for accessing various Google services via their public API" url='https://projects.kde.org/projects/extragear/libs/libkgapi' arch=('x86_64') license=('GPL' 'LGPL' 'FDL') depends=('kcalcore' 'kcontacts') makedepends=('extra-cmake-modules' 'kdoctools') source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.xz") #source=("git://anongit.kde.org/libkgapi") md5sums=('a65d1d637f18655b9b9bd22acf3813ec') prepare() { mkdir -p build } build() { cd build cmake ../${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_INSTALL_DIR=lib \ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ -DBUILD_TESTING=OFF make } package() { cd build make DESTDIR="${pkgdir}" install }