PKGBUILD 2.67 KB
Newer Older
1
pkgbase=digikam
2
pkgname=('digikam' 'kipi-plugins')
Jeff Huang's avatar
Jeff Huang committed
3
_pkgver=5.8.0
Neofytos Kolokotronis's avatar
Neofytos Kolokotronis committed
4
pkgver=${_pkgver//-/_}
Luca Giambonini's avatar
Luca Giambonini committed
5
pkgrel=5
6
epoch=1
Jeff Huang's avatar
Jeff Huang committed
7
url="https://www.digikam.org/"
8 9
arch=('x86_64')
license=('GPL')
10
options=("debug")
11
makedepends=('extra-cmake-modules' 'libkipi' 'libksane' 'liblqr' 'boost'
12
             'libgpod' 'opencv' 'qt5-webkit' 'doxygen' 'lensfun' 'imagemagick' 'eigen3' 'libpgf'
Jeff Huang's avatar
Jeff Huang committed
13
             'libusb' 'kio' 'kdoctools' 'marble' 'kfilemetadata' 'akonadi-contact' 'qtav'
14
             'threadweaver' 'kcalcore' 'knotifyconfig' 'libkvkontakte' 'libmediawiki' 'mariadb' 'prison'
15
             'libavc1394' 'libiec61883' 'jack2' 'exiv2')
Jeff Huang's avatar
Jeff Huang committed
16
source=("http://download.kde.org/stable/${pkgname}/${pkgname}-${_pkgver}.tar.xz")
Jeff Huang's avatar
Jeff Huang committed
17
sha1sums=('707345f70f8e70df0b7f1de484d82223c4912f82')
18 19 20 21

prepare() {
  mkdir -p build
}
22 23

build() {
24

25
  cd build
Luca Giambonini's avatar
Luca Giambonini committed
26

Neofytos Kolokotronis's avatar
Neofytos Kolokotronis committed
27
  cmake ../${pkgname}-${_pkgver} \
28 29 30 31 32 33 34 35
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DCMAKE_BUILD_TYPE=RelWithDebInfo \
    -DCMAKE_SKIP_RPATH=ON \
    -DBUILD_TESTING=OFF \
    -DENABLE_KFILEMETADATASUPPORT=ON \
    -DENABLE_MEDIAPLAYER=ON \
    -DENABLE_AKONADICONTACTSUPPORT=ON \
AlmAck's avatar
AlmAck committed
36
    -DENABLE_OPENCV3=ON \
37
    -DENABLE_MYSQLSUPPORT=ON \
Jeff Huang's avatar
Jeff Huang committed
38 39
    -DENABLE_INTERNALMYSQL=ON \
    -DENABLE_APPSTYLES=ON
40
  make
41 42 43
}

package_digikam() {
44 45
  pkgdesc="Digital photo management application for KDE"
  depends=('liblqr' 'libkipi' 'lensfun' 'libpgf' 'opencv' 'akonadi-contact'
46
	   'knotifyconfig' 'libksane' 'kfilemetadata' 'qtav' 'marble' 'mariadb' 'kcalcore' 'exiv2')
Jeff Huang's avatar
Jeff Huang committed
47
  optdepends=('kipi-plugins: more tools and plugins'
Jeff Huang's avatar
Jeff Huang committed
48
	      'qt5-imageformats: support for additional image formats (WEBP, TIFF)'
Jeff Huang's avatar
Jeff Huang committed
49
	      'hugin: panorama tool')
50 51
  install=digikam.install

Jeff Huang's avatar
Jeff Huang committed
52 53 54 55 56 57
  cd build/core
  make DESTDIR="$pkgdir" install
  cd $srcdir/build/doc/digikam
  make DESTDIR="$pkgdir" install
  cd $srcdir/build/po
  make DESTDIR="$pkgdir" install
58 59

  # Provided by kipi-plugins
Jeff Huang's avatar
Jeff Huang committed
60
  rm "$pkgdir"/usr/share/locale/*/LC_MESSAGES/kipiplugin*.mo
61 62 63
}

package_kipi-plugins() {
64 65 66
  pkgdesc="A collection of plugins extending the KDE graphics and image applications as digiKam"
  depends=('kio' 'libkipi')
  optdepends=('kcalcore: Calendar plugin'
67 68
              'libmediawiki: MediaWiki Export plugin'
              'libkvkontakte: VKontakte.ru Exporter plugin'
69 70 71 72 73 74
              'libgpod: iPodExport plugin'
              'opencv: Remove Red Eyes plugin'
              'imagemagick: Video SlideShow plugin'
              'qt5-gstreamer: Video SlideShow plugin'
              'threadweaver: panorama plugin'
	      'hugin: panorama plugin')
75 76
  install=kipi-plugins.install

Jeff Huang's avatar
Jeff Huang committed
77 78 79 80
  cd build/extra
  make DESTDIR="$pkgdir" install
  cd $srcdir/build/po
  make DESTDIR="$pkgdir" install
Francesco Marinucci's avatar
Francesco Marinucci committed
81

Jeff Huang's avatar
Jeff Huang committed
82 83
  # Provided by digikam
  rm "${pkgdir}"/usr/share/locale/*/LC_MESSAGES/digikam.mo
84
}