PKGBUILD 1.52 KB
Newer Older
1
pkgname=digikam
2
_pkgver=6.4.0
Neofytos Kolokotronis's avatar
Neofytos Kolokotronis committed
3
pkgver=${_pkgver//-/_}
4
pkgrel=1
5
epoch=1
6
pkgdesc="Digital photo management application for KDE"
Jeff Huang's avatar
Jeff Huang committed
7
url="https://www.digikam.org/"
8 9
arch=('x86_64')
license=('GPL')
10
options=("debug")
11
depends=('lensfun' 'opencv' 'akonadi-contacts' 'knotifyconfig' 'libksane' 'kfilemetadata'
12
         'qtav' 'marble' 'threadweaver' 'kcalcore' 'qt5-xmlpatterns' 'imagemagick' 'exiv2' 'qt5-webengine')
Jeff Huang's avatar
Jeff Huang committed
13
makedepends=('extra-cmake-modules' 'doxygen' 'eigen3' 'boost' 'kdoctools' 'libkvkontakte' 'jasper')
14
optdepends=('qt5-imageformats: support for additional image formats (WEBP, TIFF)'
15 16
	    'hugin: panorama tool'
            'libkvkontakte: VKontakte plugin')
17
source=("https://download.kde.org/stable/${pkgname}/${_pkgver}/${pkgname}-${_pkgver}.tar.xz"{,.sig})
18
sha1sums=('6f067b31a2109f82b2e78c89fc84bd03eab30674'
19 20
          'SKIP')
validpgpkeys=(D1CF2444A7858C5F2FB095B74A77747BC2386E50) # digiKam.org (digiKam project) <digikamdeveloper@gmail.com>
21 22 23 24

prepare() {
  mkdir -p build
}
25 26

build() {
27

28
  cd build
Luca Giambonini's avatar
Luca Giambonini committed
29

Neofytos Kolokotronis's avatar
Neofytos Kolokotronis committed
30
  cmake ../${pkgname}-${_pkgver} \
31
    -DCMAKE_INSTALL_PREFIX=/usr \
32
    -DCMAKE_INSTALL_LIBDIR=lib \
33 34 35 36 37 38
    -DCMAKE_BUILD_TYPE=RelWithDebInfo \
    -DCMAKE_SKIP_RPATH=ON \
    -DBUILD_TESTING=OFF \
    -DENABLE_KFILEMETADATASUPPORT=ON \
    -DENABLE_MEDIAPLAYER=ON \
    -DENABLE_AKONADICONTACTSUPPORT=ON \
39
    -DENABLE_MYSQLSUPPORT=ON \
40 41 42
    -DENABLE_APPSTYLES=ON \
    -DENABLE_QWEBENGINE=ON \
    -DOpenGL_GL_PREFERENCE=GLVND
43
  make
44 45
}

46 47
package() {
  cd build/core
Jeff Huang's avatar
Jeff Huang committed
48 49 50
  make DESTDIR="$pkgdir" install
  cd $srcdir/build/po
  make DESTDIR="$pkgdir" install
51
}