# $Id: PKGBUILD 144623 2011-12-08 09:18:27Z andrea $ # Maintainer: Andrea Scarpino pkgname=kdegraphics-okular pkgver=4.7.4 pkgrel=1 pkgdesc='Document Viewer' arch=('i686' 'x86_64' 'mips64el') url="http://kde.org/applications/graphics/okular/" license=('GPL' 'LGPL' 'FDL') groups=('kde' 'kdegraphics') depends=('kdebase-runtime' 'qimageblitz' 'poppler-qt' 'chmlib' 'djvulibre' 'ebook-tools' 'libspectre') makedepends=('pkgconfig' 'cmake' 'automoc4') optdepends=('kdegraphics-mobipocket: mobipocket support') install=${pkgname}.install source=("http://download.kde.org/stable/${pkgver}/src/okular-${pkgver}.tar.bz2") sha1sums=('5f02bbfeff81b55e0fd5d9e973cb927909faccb1') build() { cd "${srcdir}" mkdir build cd build cmake ../okular-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_INSTALL_PREFIX=/usr make } package() { cd "${srcdir}"/build make DESTDIR="${pkgdir}" install }