mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
89 lines
2.8 KiB
Bash
89 lines
2.8 KiB
Bash
# $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')
|
|
_pkgver=5.4.0
|
|
pkgver=${_pkgver//-/_} # for beta versions
|
|
pkgrel=1
|
|
pkgdesc="Digital photo management application for KDE"
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL')
|
|
url="http://www.digikam.org/"
|
|
makedepends=('extra-cmake-modules' 'libkipi' 'libksane' 'liblqr' 'opencv' 'boost'
|
|
'doxygen' 'lensfun' 'eigen' 'kdoctools' 'marble' 'kdesignerplugin'
|
|
'kfilemetadata' 'akonadi-contacts' 'qtav' 'threadweaver' 'kcalcore'
|
|
'knotifyconfig' 'libmediawiki' 'libkvkontakte')
|
|
source=("http://download.kde.org/stable/${pkgname}/${pkgname}-${_pkgver}.tar.xz" digikam-find-qtav.patch
|
|
'0001-optionally-enable-OpenGL.patch')
|
|
sha1sums=('6c58ee30cd84b40acf4427f1bb9dbb8b891eb894'
|
|
'b170e5eab5a8c40d1c8c8f2d2cfe5e911ad66939'
|
|
'eb78bedfc8465c34b2c08d239085ccaf2e745d71')
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
|
|
# Fix QtAV location
|
|
cd $pkgname-$pkgver
|
|
patch -p1 -i ../digikam-find-qtav.patch
|
|
|
|
# OpenGL switch
|
|
patch -p1 -d core -i ${srcdir}/0001-optionally-enable-OpenGL.patch
|
|
}
|
|
|
|
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 \
|
|
-DENABLE_APPSTYLES=ON \
|
|
-DENABLE_OPENGL=OFF
|
|
make
|
|
}
|
|
|
|
package_digikam() {
|
|
pkgdesc="Digital photo management application for KDE"
|
|
depends=('liblqr' 'libkipi' 'lensfun' 'opencv' 'akonadi-contacts'
|
|
'knotifyconfig' 'libksane' 'kfilemetadata' 'qtav' 'marble' 'threadweaver' 'kcalcore')
|
|
optdepends=('kipi-plugins: export to various online services'
|
|
'hugin: panorama tool' 'qt5-imageformats: WEBP format support')
|
|
|
|
cd build/core
|
|
make DESTDIR="$pkgdir" install
|
|
cd $srcdir/build/doc
|
|
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'
|
|
'libkvkontakte: VKontakte.ru Exporter plugin')
|
|
|
|
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
|
|
}
|