# # KDE SC Packages for Chakra, part of chakra-project.org # # maintainer: abveritas[at]chakra-project[dog]org> # maintainer: Manuel Tortosa # include global config source ../_buildscripts/${current_repo}-${_arch}-cfg.conf # # package info # pkgname=kdegraphics-okular _pkgname=okular arch=('i686' 'x86_64') pkgver=${_kdever} pkgrel=1 pkgdesc="split package" url="http://www.kde.org" license=('GPL' 'LGPL' 'FDL') options=('docs' '!splithdr' 'splitdbg' 'log') groups=("kde" "kdegraphics" "kde-uninstall") provides=('okular') categories=('office') install=okular.install # note on libxxf86vm: # not detected by namcap because libgl depends on it # but nvidia providing libgl does not depend on libxxf86vm depends=("kdelibs>=${_kdever}" "kde-runtime>=${_kdever}" 'libxxf86vm' 'sane' 'lcms' "kdegraphics-libkdcraw>=${_kdever}" "kdegraphics-libkexiv2>=${_kdever}" 'qimageblitz' 'poppler-qt' 'chmlib' 'djvulibre' 'libspectre' 'ebook-tools') makedepends=('pkgconfig' 'cmake' 'automoc4' 'qca') source=("$_mirror/${_pkgname}-$_kdever.tar.xz") md5sums=(`grep ${_pkgname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`) # # build function # build() { msg "starting build ..." cd ${srcdir}/${_pkgname}-${pkgver} cmake . -DCMAKE_BUILD_TYPE=${_build_type} \ -DCMAKE_INSTALL_PREFIX=${_installprefix} \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed' make || return 1 } package() { cd ${srcdir}/${_pkgname}-${pkgver} make DESTDIR=${pkgdir} install || return 1 }