# $Id: PKGBUILD 147936 2012-01-28 11:01:16Z andrea $ # Maintainer: Andrea Scarpino pkgname=libqzeitgeist pkgver=0.8.0 pkgrel=2 pkgdesc="A Qt interface to the Zeitgeist event tracking system" url="https://projects.kde.org/projects/kdesupport/libqzeitgeist" arch=('i686' 'x86_64') license=('GPL') depends=('qt') makedepends=('cmake' 'automoc4' 'python2' 'zeitgeist') source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.bz2" 'set-declarative-installation-dir.patch') md5sums=('97bdea6a1865db7d5f29c93e3a492f24' '712013e582acb73296e41ad842d0da01') build() { cd "${srcdir}"/${pkgname}-${pkgver} patch -p1 -i "${srcdir}"/set-declarative-installation-dir.patch cd "${srcdir}" # Fix python2 path sed -i 's|/usr/bin/env python|/usr/bin/env python2|' \ ${pkgname}-${pkgver}/scripts/onto2cpp.py mkdir build cd build cmake ../${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DDECLARATIVE_IMPORT_PREFIX=/usr/lib/qt/imports/ make } package() { cd "${srcdir}"/build make DESTDIR="${pkgdir}" install }