desktop/digikam/PKGBUILD
2018-09-12 19:22:41 +02:00

83 lines
2.6 KiB
Bash

pkgbase=digikam
pkgname=('digikam' 'kipi-plugins')
_pkgver=5.9.0
pkgver=${_pkgver//-/_}
pkgrel=3
epoch=1
url="https://www.digikam.org/"
arch=('x86_64')
license=('GPL')
options=("debug")
makedepends=('extra-cmake-modules' 'libkipi' 'libksane' 'liblqr' 'boost'
'libgpod' 'opencv' 'qt5-webkit' 'doxygen' 'lensfun' 'imagemagick' 'eigen3' 'libpgf'
'libusb' 'kio' 'kdoctools' 'marble' 'kfilemetadata' 'akonadi-contact' 'qtav'
'threadweaver' 'kcalcore' 'knotifyconfig' 'libkvkontakte' 'libmediawiki' 'mariadb' 'prison'
'libavc1394' 'libiec61883' 'jack2' 'exiv2' 'glu')
source=("https://download.kde.org/stable/${pkgname}/${pkgname}-${_pkgver}.tar.xz")
sha1sums=('f98f9311cc52173192db6ebba101231cf24af633')
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../${pkgname}-${_pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_SKIP_RPATH=ON \
-DBUILD_TESTING=OFF \
-DENABLE_KFILEMETADATASUPPORT=ON \
-DENABLE_MEDIAPLAYER=ON \
-DENABLE_AKONADICONTACTSUPPORT=ON \
-DENABLE_OPENCV3=ON \
-DENABLE_MYSQLSUPPORT=ON \
-DENABLE_INTERNALMYSQL=ON \
-DENABLE_APPSTYLES=ON
make
}
package_digikam() {
pkgdesc="Digital photo management application for KDE"
depends=('liblqr' 'libkipi' 'lensfun' 'libpgf' 'opencv' 'akonadi-contact'
'knotifyconfig' 'libksane' 'kfilemetadata' 'qtav' 'marble' 'mariadb' 'kcalcore' 'exiv2')
optdepends=('kipi-plugins: more tools and plugins'
'qt5-imageformats: support for additional image formats (WEBP, TIFF)'
'hugin: panorama tool')
cd build/core
make DESTDIR="$pkgdir" install
cd $srcdir/build/doc/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*.mo
}
package_kipi-plugins() {
pkgdesc="A collection of plugins extending the KDE graphics and image applications as digiKam"
depends=('kio' 'libkipi')
optdepends=('kcalcore: Calendar plugin'
'libmediawiki: MediaWiki Export plugin'
'libkvkontakte: VKontakte.ru Exporter plugin'
'libgpod: iPodExport plugin'
'opencv: Remove Red Eyes plugin'
'imagemagick: Video SlideShow plugin'
'qt5-gstreamer: Video SlideShow plugin'
'threadweaver: panorama plugin'
'hugin: panorama 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
}