1 # Maintainer: Ronald van Haren <ronald@archlinux.org>
2 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
8 pkgver=${_pkgver//-/} # for beta versions
10 pkgdesc='An advanced digital photo management application'
13 url='https://www.digikam.org/'
14 depends=(lensfun opencv akonadi-contacts knotifyconfig libksane kfilemetadata marble-common threadweaver kcalendarcore
15 qt5-networkauth qt5-xmlpatterns imagemagick jasper glu perl-image-exiftool)
16 makedepends=(extra-cmake-modules doxygen eigen boost kdoctools)
17 optdepends=('hugin: panorama tool' 'qt5-imageformats: support for additional image formats (WEBP, TIFF)'
18 'rawtherapee: RAW import' 'darktable: RAW import'
19 'perl: for digitaglinktree')
20 source=(https://download.kde.org/stable/$pkgname/${_pkgver%-*}/digiKam-$_pkgver.tar.xz{,.sig}
22 sha256sums=('102c712b6209fe2ac877c9b1d019dacadaf115adf915570d26816066d151e847'
24 '4b02d8c00c0117fb7e440bdf30fa366efda62a7710a44b49fb649a93fc1165d9')
25 validpgpkeys=(D1CF2444A7858C5F2FB095B74A77747BC2386E50) # digiKam.org (digiKam project) <digikamdeveloper@gmail.com>
28 patch -d $pkgname-$pkgver -p1 < akonadi-22.04.patch # Fix build with akonadi 22.04
32 cmake -B build -S $pkgname-$_pkgver \
34 -DENABLE_KFILEMETADATASUPPORT=ON \
35 -DENABLE_MEDIAPLAYER=ON \
36 -DENABLE_AKONADICONTACTSUPPORT=ON \
37 -DENABLE_MYSQLSUPPORT=ON \
38 -DENABLE_APPSTYLES=ON \
39 -DENABLE_QWEBENGINE=ON \
45 DESTDIR="$pkgdir" cmake --install build