113.0-1
[arch-packages.git] / digikam / repos / extra-x86_64 / PKGBUILD
blobdf561c90b0d0891ed2ce0c617982600b30ec87c4
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>
6 pkgname=digikam
7 _pkgver=8.0.0
8 pkgver=${_pkgver//-/} # for beta versions
9 pkgrel=3
10 pkgdesc='An advanced digital photo management application'
11 arch=(x86_64)
12 license=(GPL)
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}
21         akonadi-22.04.patch)
22 sha256sums=('102c712b6209fe2ac877c9b1d019dacadaf115adf915570d26816066d151e847'
23             'SKIP'
24             '4b02d8c00c0117fb7e440bdf30fa366efda62a7710a44b49fb649a93fc1165d9')
25 validpgpkeys=(D1CF2444A7858C5F2FB095B74A77747BC2386E50) # digiKam.org (digiKam project) <digikamdeveloper@gmail.com>
27 prepare() {
28   patch -d $pkgname-$pkgver -p1 < akonadi-22.04.patch # Fix build with akonadi 22.04
31 build() {
32   cmake -B build -S $pkgname-$_pkgver \
33     -DBUILD_TESTING=OFF \
34     -DENABLE_KFILEMETADATASUPPORT=ON \
35     -DENABLE_MEDIAPLAYER=ON \
36     -DENABLE_AKONADICONTACTSUPPORT=ON \
37     -DENABLE_MYSQLSUPPORT=ON \
38     -DENABLE_APPSTYLES=ON \
39     -DENABLE_QWEBENGINE=ON \
40     -DSSE4_1_FOUND=OFF
41   cmake --build build
44 package() {
45   DESTDIR="$pkgdir" cmake --install build