desktop/digikam/PKGBUILD

88 lines
2.7 KiB
Bash
Raw Normal View History

pkgbase=digikam
pkgname=('digikam' 'kipi-plugins')
2017-03-14 21:14:07 +08:00
_pkgver=5.5.0
2016-04-28 17:34:18 +08:00
pkgver=${_pkgver//-/_}
2017-01-10 13:39:15 +08:00
pkgrel=1
epoch=1
2016-11-07 07:44:42 +08:00
url="https://www.digikam.org/"
arch=('x86_64')
license=('GPL')
options=("debug")
makedepends=('extra-cmake-modules' 'libkipi' 'libksane' 'liblqr' 'boost'
'libgpod' 'hugin' 'opencv' 'qt5-webkit' 'doxygen' 'lensfun' 'imagemagick' 'eigen3' 'libpgf'
2017-01-10 13:39:15 +08:00
'libusb' 'kio' 'kdoctools' 'marble' 'kfilemetadata' 'akonadi-contact' 'qtav'
'threadweaver' 'kcalcore' 'knotifyconfig' 'libkvkontakte' 'libmediawiki' 'mariadb' 'prison')
2017-03-14 21:14:07 +08:00
source=("http://download.kde.org/stable/${pkgname}/${pkgname}-${_pkgver}.tar.xz")
sha1sums=('86de0ade7ec8c891a57a0b1eaf7f389d745ba1c7')
prepare() {
mkdir -p build
2017-03-14 21:14:07 +08:00
# sv docs fail to build
sed -e '/sv/d' -i $pkgname-$pkgver/doc-translated/CMakeLists.txt
}
build() {
cd build
2014-12-31 06:46:05 +08:00
2016-04-28 17:34:18 +08:00
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 \
2016-01-23 06:10:46 +08:00
-DENABLE_OPENCV3=ON \
-DENABLE_MYSQLSUPPORT=ON \
2016-09-25 11:41:48 +08:00
-DENABLE_INTERNALMYSQL=ON \
-DENABLE_APPSTYLES=ON
2016-01-23 06:10:46 +08:00
make
}
package_digikam() {
pkgdesc="Digital photo management application for KDE"
depends=('liblqr' 'libkipi' 'lensfun' 'libpgf' 'opencv' 'akonadi-contact'
2017-01-10 13:39:15 +08:00
'knotifyconfig' 'libksane' 'kfilemetadata' 'qtav' 'marble' 'mariadb' 'kcalcore')
2016-09-25 11:41:48 +08:00
optdepends=('kipi-plugins: more tools and plugins'
2016-11-07 07:44:42 +08:00
'qt5-imageformats: support for additional image formats (WEBP, TIFF)'
2016-09-25 11:41:48 +08:00
'hugin: panorama tool')
install=digikam.install
2016-07-06 17:20:42 +08:00
cd build/core
make DESTDIR="$pkgdir" install
cd $srcdir/build/doc/digikam
make DESTDIR="$pkgdir" install
cd $srcdir/build/po
make DESTDIR="$pkgdir" install
2016-07-06 20:49:55 +08:00
# 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=('kcalcore: Calendar plugin'
2016-05-17 21:17:25 +08:00
'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')
install=kipi-plugins.install
2016-07-06 17:20:42 +08:00
cd build/extra
make DESTDIR="$pkgdir" install
cd $srcdir/build/po
make DESTDIR="$pkgdir" install
2014-11-25 01:25:34 +08:00
2016-07-06 17:20:42 +08:00
# Provided by digikam
rm "${pkgdir}"/usr/share/locale/*/LC_MESSAGES/digikam.mo
}