2014-01-13 00:22:06 +08:00
|
|
|
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
|
|
|
|
# Contributors: Manuel Tortosa <manutortosa@chakra-project.org>
|
2013-12-21 00:06:41 +08:00
|
|
|
# Andrea Scarpino <andrea@archlinux.org>
|
2012-06-01 05:57:25 +08:00
|
|
|
|
|
|
|
pkgname=libkgapi
|
2014-08-01 04:46:07 +08:00
|
|
|
pkgver=2.2.0
|
2015-04-01 19:49:58 +08:00
|
|
|
pkgrel=2
|
2013-12-21 00:06:41 +08:00
|
|
|
pkgdesc='A KDE-based library for accessing various Google services via their public API'
|
2012-06-01 05:57:25 +08:00
|
|
|
url='https://projects.kde.org/projects/kdereview/libkgapi'
|
2012-12-24 23:38:45 +08:00
|
|
|
arch=('x86_64')
|
2013-12-21 00:06:41 +08:00
|
|
|
license=('GPL'
|
|
|
|
'LGPL'
|
|
|
|
'FDL')
|
2014-04-14 00:08:46 +08:00
|
|
|
options=("debug")
|
2013-12-21 00:06:41 +08:00
|
|
|
depends=('kdepimlibs'
|
|
|
|
'qjson')
|
|
|
|
makedepends=('cmake'
|
|
|
|
'automoc4'
|
|
|
|
'boost')
|
2014-04-14 00:08:46 +08:00
|
|
|
source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.bz2")
|
2014-08-01 04:46:07 +08:00
|
|
|
sha512sums=('c5f37aacb89243d7985d7064aa8941d3d2a6c26685113e876b38c737ea2e1126b40b0f88b0908e7ea8a7bcb2fade1dc528c2f73f22890b9e892c6d18d9d3bb42')
|
2013-12-21 00:06:41 +08:00
|
|
|
|
|
|
|
prepare() {
|
2015-04-01 19:49:58 +08:00
|
|
|
[[ -d ${srcdir}/build ]] || rm -rf ${srcdir}/build
|
|
|
|
mkdir -p "${srcdir}/build"
|
2013-12-21 00:06:41 +08:00
|
|
|
}
|
2012-06-01 05:57:25 +08:00
|
|
|
|
|
|
|
build() {
|
2013-12-21 00:06:41 +08:00
|
|
|
cd "${srcdir}/build"
|
|
|
|
cmake "../${pkgname}-${pkgver}" \
|
2014-08-01 04:46:07 +08:00
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
2014-05-17 02:33:00 +08:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2014-01-13 00:22:06 +08:00
|
|
|
-DKDE4_BUILD_TESTS=ON
|
2013-12-21 00:06:41 +08:00
|
|
|
make
|
2012-06-01 05:57:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2013-12-21 00:06:41 +08:00
|
|
|
cd "${srcdir}/build"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2012-06-01 05:57:25 +08:00
|
|
|
}
|