# $Id: PKGBUILD 258885 2016-02-04 22:15:38Z arojas $ # Maintainer (Arch): Ronald van Haren # Contributor (Arch): Andrea Scarpino # Contributor (Arch): Tobias Powalowski # Maintainer: André Silva # Contributor: Márcio Silva pkgbase=digikam pkgname=kipi-plugins pkgver=4.14.0 pkgrel=5.parabola1.nonprism1 pkgdesc="A collection of plugins extending the KDE graphics and image applications as digiKam, without nonfree jAlbum and SimpleViewer support and support for unsafe and dangerous for privacy protocols" arch=('i686' 'x86_64') license=('GPL') url="http://www.digikam.org/" replaces=("${pkgname}-libre" "${pkgname}-libre-nonprism") conflicts=("${pkgname}-libre" "${pkgname}-libre-nonprism") makedepends=('kdepimlibs4' 'libkexiv2_4' 'libkdcraw4' 'libkipi4' 'libksane4' 'liblqr' 'opencv' 'boost' 'libgpod' 'hugin' 'libgphoto2' 'cmake' 'automoc4' 'doxygen' 'lensfun' 'imagemagick' 'eigen' 'libbaloo4' 'libpgf' 'libusb-compat' 'libkface4' 'libkgeomap4' 'libmediawiki' 'clang') depends=('kdebase-runtime' 'kdepimlibs4' 'libkdcraw4' 'libkipi4' 'libksane4' 'libkexiv2_4') optdepends=('libkgeomap4: Geolocalize tool' 'libmediawiki: MediaWiki Export plugin' 'libgpod: iPodExport plugin' 'opencv: Remove Red Eyes plugin' 'imagemagick: Video SlideShow plugin' 'hugin: panorama tools') options=('staticlibs') install=kipi-plugins.install source=("http://download.kde.org/stable/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2" lensfun-0.3.2.patch::"https://quickgit.kde.org/?p=digikam.git&a=commitdiff&h=0f15998&o=plain") sha1sums=('08bbded5433e442dce8ac00eb301606ef0924e8c' 'b2e262ea5060ad5ffd7d92d41a9badcea6e6c299') prepare() { cd ${srcdir}/${pkgbase}-${pkgver} # Fix compilation with clang sed -i '\|fno-tree-pre|d ' core/CMakeLists.txt sed -i '\|flashexport|d \|jalbumexport|d \|imageshackexport|d s| Facebook, and Imgur|| \|QtKOAuth|d \|Imgur|d \|imgurexport|d \|check the libkvkontakte version|,+18 d \|vkontakte|,+1 d \|LIBKVKONTAKTE|d s| and YandexFotki|| \|YandexFotki|d \|yandexfotki|d \|DlnaExport|d \|dlnaexport|d \|Facebook|d \|facebook|d \|flickrexport|d \|picasawebexport|d ' extra/kipi-plugins/CMakeLists.txt sed -i '\|m_actionExport| s|true|false| ' extra/kipi-plugins/smug/plugin_smug.cpp sed -i '\|Remote Flickr Export plugin|,+2 d \|flickrexport|d ' doc/kipi-plugins/index.docbook # Fix build with lensfun 0.3.2 cd core patch -p1 -i "$srcdir"/lensfun-0.3.2.patch } build() { mkdir build cd build cmake ../${pkgbase}-${pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_SKIP_RPATH=ON \ -DBUILD_tests=OFF \ -DDIGIKAMSC_COMPILE_LIBKVKONTAKTE=OFF \ -DCMAKE_C_COMPILER=clang # Fix build with flex 2.6 make } package() { cd build/extra/kipi-plugins make DESTDIR="${pkgdir}" install cd ../../../build/po make DESTDIR="${pkgdir}" install # Put these in the relevant splitted packages #rm "${pkgdir}"/usr/share/locale/kde4/*/LC_MESSAGES/libkgeomap.mo rm "${pkgdir}"/usr/share/locale/kde4/*/LC_MESSAGES/digikam.mo # Fix conflicts with kde-l10n-* (FS#33762) rm "${pkgdir}"/usr/share/locale/kde4/*/LC_MESSAGES/libkipi.mo cd ../../build/doc/kipi-plugins make DESTDIR="${pkgdir}" install }