1 # $Id: PKGBUILD 320127 2018-03-24 09:48:28Z arojas $
2 # Maintainer: Ronald van Haren <ronald@archlinux.org>
3 # Maintainer: Antonio Rojas <arojas@archlinux.org>
4 # Contributor: Andrea Scarpino <andrea@archlinux.org>
5 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
9 pkgver=${_pkgver//-/_} # for beta versions
11 pkgdesc='An advanced digital photo management application'
14 url='https://www.digikam.org/'
15 depends=(lensfun opencv akonadi-contacts knotifyconfig libksane kfilemetadata qtav marble-common threadweaver kcalendarcore
16 qt5-xmlpatterns imagemagick jasper glu perl-image-exiftool)
17 makedepends=(extra-cmake-modules doxygen eigen boost kdoctools)
18 optdepends=('hugin: panorama tool' 'qt5-imageformats: support for additional image formats (WEBP, TIFF)'
19 'rawtherapee: RAW import' 'darktable: RAW import'
20 'perl: for digitaglinktree')
21 source=(https://download.kde.org/stable/$pkgname/$pkgver/digiKam-$_pkgver.tar.xz{,.sig}
23 sha256sums=('c0c6dd2ea8a07514acbf2462f3a54518e7e8099b3337f881336168cff63d771c'
25 'ef2601f9b2e668116a3643b4bd7ddcfc233ccfc747d813955423ca17b6a23dee')
26 validpgpkeys=(D1CF2444A7858C5F2FB095B74A77747BC2386E50) # digiKam.org (digiKam project) <digikamdeveloper@gmail.com>
30 patch -d $pkgname-$_pkgver -p1 < ffmpeg5.patch # Fix build with FFmpeg 5
34 cmake -B build -S $pkgname-$_pkgver \
36 -DENABLE_KFILEMETADATASUPPORT=ON \
37 -DENABLE_MEDIAPLAYER=ON \
38 -DENABLE_AKONADICONTACTSUPPORT=ON \
39 -DENABLE_MYSQLSUPPORT=ON \
40 -DENABLE_APPSTYLES=ON \
41 -DENABLE_QWEBENGINE=ON
46 DESTDIR="$pkgdir" cmake --install build