2016-07-06 00:59:39 +00:00
|
|
|
# $Id$
|
|
|
|
# Maintainer: Ronald van Haren <ronald@archlinux.org>
|
|
|
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
|
|
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - patch to enable/disable OpenGL via a switch
|
|
|
|
# - cmake with -DENABLE_OPENGL=OFF
|
|
|
|
|
|
|
|
pkgbase=digikam
|
|
|
|
pkgname=('digikam' 'kipi-plugins')
|
2017-06-22 00:22:05 +00:00
|
|
|
_pkgver=5.6.0
|
2016-09-23 12:46:52 +00:00
|
|
|
pkgver=${_pkgver//-/_} # for beta versions
|
2017-08-31 18:49:55 +00:00
|
|
|
pkgrel=5
|
2016-07-06 00:59:39 +00:00
|
|
|
pkgdesc="Digital photo management application for KDE"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
license=('GPL')
|
|
|
|
url="http://www.digikam.org/"
|
2016-08-09 18:15:51 +00:00
|
|
|
makedepends=('extra-cmake-modules' 'libkipi' 'libksane' 'liblqr' 'opencv' 'boost'
|
2017-03-14 12:46:03 +00:00
|
|
|
'doxygen' 'lensfun' 'eigen' 'kdoctools' 'marble-common' 'kdesignerplugin'
|
2017-01-10 01:47:08 +00:00
|
|
|
'kfilemetadata' 'akonadi-contacts' 'qtav' 'threadweaver' 'kcalcore'
|
2016-11-06 22:51:19 +00:00
|
|
|
'knotifyconfig' 'libmediawiki' 'libkvkontakte')
|
2017-03-14 12:46:03 +00:00
|
|
|
source=("http://download.kde.org/stable/${pkgname}/${pkgname}-${_pkgver}.tar.xz"
|
2017-08-21 11:54:42 +00:00
|
|
|
digikam-cmake-3.9.patch::"https://cgit.kde.org/digikam.git/patch/?id=7e00441c"
|
2016-07-06 00:59:39 +00:00
|
|
|
'0001-optionally-enable-OpenGL.patch')
|
2017-06-22 00:22:05 +00:00
|
|
|
sha256sums=('65bdd3f15668e314b852d523a0bf95da32450f31fcfda60da62e57d4622a663c'
|
2017-08-21 11:54:42 +00:00
|
|
|
'f7efc50dd63711388b6b119a7b3413f49deca233687e7ef1bafecf4c76491eff'
|
2017-06-22 00:22:05 +00:00
|
|
|
'f6f234f430f02e058e12e48577f9d8441959e84b42f4e50d733706be8b214bf5')
|
2016-07-06 00:59:39 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
|
|
|
|
2017-03-14 12:46:03 +00:00
|
|
|
# sv docs fail to build
|
|
|
|
sed -e '/sv/d' -i $pkgname-$pkgver/doc-translated/CMakeLists.txt
|
2017-08-31 18:49:55 +00:00
|
|
|
# fix conflicts with libkvkontakte
|
|
|
|
rm $pkgbase-$pkgver/po/*/libkvkontakte.po
|
2017-08-21 23:53:12 +00:00
|
|
|
# fix build with cmake 3.9
|
2017-08-21 11:54:42 +00:00
|
|
|
cd $pkgbase-$pkgver/core
|
|
|
|
patch -p1 -i ../../digikam-cmake-3.9.patch
|
2017-01-10 01:47:08 +00:00
|
|
|
|
2016-08-09 18:15:51 +00:00
|
|
|
# OpenGL switch
|
2017-08-22 00:37:30 +00:00
|
|
|
patch -p1 -i ${srcdir}/0001-optionally-enable-OpenGL.patch
|
2016-07-06 00:59:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
|
|
|
|
|
|
|
cmake ../${pkgname}-${_pkgver} \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DBUILD_TESTING=OFF \
|
|
|
|
-DENABLE_KFILEMETADATASUPPORT=ON \
|
|
|
|
-DENABLE_MEDIAPLAYER=ON \
|
|
|
|
-DENABLE_AKONADICONTACTSUPPORT=ON \
|
|
|
|
-DENABLE_MYSQLSUPPORT=ON \
|
|
|
|
-DENABLE_OPENCV3=ON \
|
2016-09-23 12:46:52 +00:00
|
|
|
-DENABLE_APPSTYLES=ON \
|
2016-07-06 00:59:39 +00:00
|
|
|
-DENABLE_OPENGL=OFF
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package_digikam() {
|
|
|
|
pkgdesc="Digital photo management application for KDE"
|
2016-08-31 12:36:58 +00:00
|
|
|
depends=('liblqr' 'libkipi' 'lensfun' 'opencv' 'akonadi-contacts'
|
2017-03-14 12:46:03 +00:00
|
|
|
'knotifyconfig' 'libksane' 'kfilemetadata' 'qtav' 'marble-common' 'threadweaver' 'kcalcore')
|
2016-08-09 18:15:51 +00:00
|
|
|
optdepends=('kipi-plugins: export to various online services'
|
2016-09-23 12:46:52 +00:00
|
|
|
'hugin: panorama tool' 'qt5-imageformats: WEBP format support')
|
2016-07-06 00:59:39 +00:00
|
|
|
|
|
|
|
cd build/core
|
|
|
|
make DESTDIR="$pkgdir" install
|
2016-09-23 12:46:52 +00:00
|
|
|
cd $srcdir/build/doc
|
2016-07-06 00:59:39 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
cd $srcdir/build/po
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
# Provided by kipi-plugins
|
2017-08-31 18:49:55 +00:00
|
|
|
rm "$pkgdir"/usr/share/locale/*/LC_MESSAGES/kipiplugin*.mo
|
2016-07-06 00:59:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_kipi-plugins() {
|
|
|
|
pkgdesc="A collection of plugins extending the KDE graphics and image applications as digiKam"
|
|
|
|
depends=('kio' 'libkipi')
|
|
|
|
optdepends=('libmediawiki: MediaWiki Export plugin'
|
2016-08-09 18:15:51 +00:00
|
|
|
'libkvkontakte: VKontakte.ru Exporter plugin')
|
2016-07-06 00:59:39 +00:00
|
|
|
|
|
|
|
cd build/extra
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
cd $srcdir/build/po
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
# Provided by digikam
|
|
|
|
rm "$pkgdir"/usr/share/locale/*/LC_MESSAGES/digikam.mo
|
|
|
|
}
|