summaryrefslogtreecommitdiff
path: root/nonprism/kipi-plugins/PKGBUILD
blob: 41ce72ae2bfbf55f07fbf86974415bed9fca0b09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# $Id: PKGBUILD 246007 2015-09-13 12:44:18Z arojas $
# Maintainer (Arch): Ronald van Haren <ronald@archlinux.org>
# Contributor (Arch): Andrea Scarpino <andrea@archlinux.org>
# Contributor (Arch): Tobias Powalowski <tpowa@archlinux.org>
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Márcio Silva <coadde@parabola.nu>

pkgbase=digikam
pkgname=kipi-plugins
pkgver=4.13.0
pkgrel=1.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' 'libkdcraw' 'libkipi' 'libksane' 'liblqr'
             'opencv' 'boost' 'libgpod' 'hugin' 'libgphoto2'
             'cmake' 'automoc4' 'doxygen' 'lensfun' 'qt-gstreamer' 'imagemagick' 'eigen' 
	     'libbaloo4' 'libpgf' 'libusb-compat' 'libkface' 'libkgeomap')
depends=('kdebase-runtime' 'kdepimlibs4' 'libkdcraw' 'libkipi' 'libksane' 'libkexiv2')
optdepends=('libkgeomap: Geolocalize tool'
            'libmediawiki: MediaWiki Export plugin'
            'libgpod: iPodExport plugin'
            'opencv: Remove Red Eyes plugin'
            'imagemagick: Video SlideShow plugin'
            'qt-gstreamer: Video SlideShow plugin'
            'hugin: panorama tools')
options=('staticlibs')
install=kipi-plugins.install
source=("http://download.kde.org/stable/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2")
sha1sums=('d696ac88dcb3bcbd3a5da83b0fbe5e7315a43f92')

prepare() {
  cd ${srcdir}/${pkgbase}-${pkgver}
  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
}

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 \
    -DDIGIKAMSC_COMPILE_LIBMEDIAWIKI=ON 
  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
}