# Maintainer: Andreas Grapentin # Maintainer (Arch): Ronald van Haren # Contributor: André Silva # Contributor: Márcio Silva # Contributor: jc_gargma # Contributor (Arch): Andrea Scarpino # Contributor (Arch): Tobias Powalowski _pkgbase=digikam pkgname=kipi-plugins _pkgver=5.7.0 pkgver=${_pkgver//-/_} # for beta versions arch=(i686 x86_64 armv7h) pkgrel=1.parabola1 pkgdesc="Digital photo management application for KDE" url="http://www.digikam.org/" license=(GPL) makedepends=(extra-cmake-modules libkipi libksane liblqr opencv boost doxygen lensfun eigen kdoctools marble-common kdesignerplugin kfilemetadata akonadi-contacts qtav threadweaver kcalcore knotifyconfig libmediawiki libkvkontakte) source=("https://download.kde.org/stable/$_pkgbase/$_pkgbase-$_pkgver.tar.xz" "libre.patch" '0001-optionally-enable-OpenGL.patch') sha256sums=('3605ffb5b6e8fbd6b725e5075f74f505d7edee7531789c2882d11df2d20150f5' '80fbe434d326551f3dc029c5db3ad1b50e87870b03185467aa25a5c03764cc89' 'f6f234f430f02e058e12e48577f9d8441959e84b42f4e50d733706be8b214bf5') replaces=("$pkgname-libre") conflicts=("$pkgname-libre") prepare() { mkdir -p build cd $_pkgbase-$_pkgver # sv docs fail to build sed -e '/sv/d' -i doc-translated/CMakeLists.txt # fix conflicts with libkvkontakte rm po/*/libkvkontakte.po patch -p1 -i ../libre.patch # OpenGL switch if [[ "$CARCH" = arm* ]]; then cd core patch -p1 -i $srcdir/0001-optionally-enable-OpenGL.patch fi } build() { cd build if [[ "$CARCH" = arm* ]]; then local cmake_extra="-DENABLE_OPENGL=OFF" fi cmake ../$_pkgbase-$_pkgver \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_TESTING=OFF \ -DENABLE_KFILEMETADATASUPPORT=ON \ -DENABLE_MEDIAPLAYER=ON \ -DENABLE_AKONADICONTACTSUPPORT=ON \ -DENABLE_MYSQLSUPPORT=ON \ -DENABLE_OPENCV3=ON \ -DENABLE_APPSTYLES=ON \ $cmake_extra make } package_kipi-plugins() { pkgdesc="A collection of plugins extending the KDE graphics and image applications as digiKam, without nonfree suggestions" depends=(kio libkipi) optdepends=('libmediawiki: MediaWiki Export plugin' 'libkvkontakte: VKontakte.ru Exporter plugin') cd build/extra make DESTDIR="$pkgdir" install cd $srcdir/build/po make DESTDIR="$pkgdir" install # Provided by digikam rm "$pkgdir"/usr/share/locale/*/LC_MESSAGES/digikam.mo }