archrelease: copy trunk to testing-x86_64
[arch-packages.git] / digikam / trunk / PKGBUILD
blob3071a24d455d67e5c2845100eba659ac042def7f
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>
7 pkgname=digikam
8 _pkgver=7.7.0
9 pkgver=${_pkgver//-/_} # for beta versions
10 pkgrel=1
11 pkgdesc='An advanced digital photo management application'
12 arch=(x86_64)
13 license=(GPL)
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}
22         ffmpeg5.patch)
23 sha256sums=('c0c6dd2ea8a07514acbf2462f3a54518e7e8099b3337f881336168cff63d771c'
24             'SKIP'
25             'ef2601f9b2e668116a3643b4bd7ddcfc233ccfc747d813955423ca17b6a23dee')
26 validpgpkeys=(D1CF2444A7858C5F2FB095B74A77747BC2386E50) # digiKam.org (digiKam project) <digikamdeveloper@gmail.com>
27 options=(debug)
29 prepare() {
30   patch -d $pkgname-$_pkgver -p1 < ffmpeg5.patch # Fix build with FFmpeg 5
33 build() {
34   cmake -B build -S $pkgname-$_pkgver \
35     -DBUILD_TESTING=OFF \
36     -DENABLE_KFILEMETADATASUPPORT=ON \
37     -DENABLE_MEDIAPLAYER=ON \
38     -DENABLE_AKONADICONTACTSUPPORT=ON \
39     -DENABLE_MYSQLSUPPORT=ON \
40     -DENABLE_APPSTYLES=ON \
41     -DENABLE_QWEBENGINE=ON
42   cmake --build build
45 package() {
46   DESTDIR="$pkgdir" cmake --install build