PKGBUILDs/extra/digikam/PKGBUILD

101 lines
3.2 KiB
Bash
Raw Normal View History

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')
2016-08-09 18:15:51 +00:00
_pkgver=5.1.0
2016-07-06 00:59:39 +00:00
pkgver=${_pkgver//-/_}
2016-08-31 12:36:58 +00:00
pkgrel=4
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'
'opencv' 'doxygen' 'lensfun' 'eigen' 'kdoctools' 'marble' 'kdesignerplugin'
2016-08-31 12:36:58 +00:00
'kfilemetadata' 'akonadi-contacts' 'qt5-multimedia' 'threadweaver' 'kcalcore'
2016-08-09 18:15:51 +00:00
'knotifyconfig' 'libmediawiki' 'libkvkontakte')
source=("http://download.kde.org/stable/${pkgname}/${pkgname}-${_pkgver}.tar.xz" digikam-5.1-fix-build.patch
2016-08-31 12:36:58 +00:00
kdebug-367675.patch::"https://quickgit.kde.org/?p=digikam.git&a=commitdiff&h=463667c8&o=plain"
2016-07-06 00:59:39 +00:00
'0001-optionally-enable-OpenGL.patch')
2016-08-09 18:15:51 +00:00
sha1sums=('87a843c39f45b8704ead6e6029e52fb03ee44680'
'5b6644c8b5534a1712f46fc84948de9a0039a601'
2016-08-31 12:36:58 +00:00
'd669d6f248d6c7dec6728037992fdf8d4e14c1d9'
2016-07-06 00:59:39 +00:00
'2711c73bdecbf355d4b8be1fa0c46be2e0e22df8')
prepare() {
mkdir -p build
2016-08-09 18:15:51 +00:00
cd $pkgname-$pkgver
# Fix build on i686
patch -p1 -i ../digikam-5.1-fix-build.patch
2016-08-31 12:36:58 +00:00
# Fix digikamhelperdir
cd core
patch -p1 -i "$srcdir"/kdebug-367675.patch
2016-07-06 00:59:39 +00:00
2016-08-09 18:15:51 +00:00
# OpenGL switch
patch -p1 -d core -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 \
-DCMAKE_SKIP_RPATH=ON \
-DBUILD_TESTING=OFF \
-DENABLE_KFILEMETADATASUPPORT=ON \
-DENABLE_MEDIAPLAYER=ON \
-DENABLE_AKONADICONTACTSUPPORT=ON \
-DENABLE_MYSQLSUPPORT=ON \
-DENABLE_OPENCV3=ON \
-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'
2016-07-06 00:59:39 +00:00
'knotifyconfig' 'libksane' 'kfilemetadata' 'qt5-multimedia' 'marble' 'threadweaver' 'kcalcore')
2016-08-09 18:15:51 +00:00
optdepends=('kipi-plugins: export to various online services'
'hugin: panorama tool')
2016-07-06 00:59:39 +00:00
cd build/core
make DESTDIR="$pkgdir" install
cd $srcdir/build/doc/digikam
make DESTDIR="$pkgdir" install
cd $srcdir/build/doc-translated/digikam
make DESTDIR="$pkgdir" install
cd $srcdir/build/po
make DESTDIR="$pkgdir" install
# Provided by kipi-plugins
rm "$pkgdir"/usr/share/locale/*/LC_MESSAGES/{kipiplugin*,libkvkontakte}.mo
}
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/doc/kipi-plugins
make DESTDIR="$pkgdir" install
cd $srcdir/build/doc-translated/kipi-plugins
make DESTDIR="pkgdir" install
cd $srcdir/build/po
make DESTDIR="$pkgdir" install
# Provided by digikam
rm "$pkgdir"/usr/share/locale/*/LC_MESSAGES/digikam.mo
}