desktop/libkgapi/PKGBUILD

41 lines
1.1 KiB
Bash
Raw Normal View History

# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
# Contributors: Manuel Tortosa <manutortosa@chakra-project.org>
# 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
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'
arch=('x86_64')
license=('GPL'
'LGPL'
'FDL')
2014-04-14 00:08:46 +08:00
options=("debug")
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')
prepare() {
2015-04-01 19:49:58 +08:00
[[ -d ${srcdir}/build ]] || rm -rf ${srcdir}/build
mkdir -p "${srcdir}/build"
}
2012-06-01 05:57:25 +08:00
build() {
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 \
-DKDE4_BUILD_TESTS=ON
make
2012-06-01 05:57:25 +08:00
}
package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install
2012-06-01 05:57:25 +08:00
}