2016-01-21 10:24:45 +08:00
|
|
|
pkgbase=digikam
|
2015-06-17 20:20:09 +08:00
|
|
|
pkgname=('digikam' 'kipi-plugins')
|
2016-07-06 07:02:37 +08:00
|
|
|
_pkgver=5.0.0
|
2016-04-28 17:34:18 +08:00
|
|
|
pkgver=${_pkgver//-/_}
|
2016-08-05 20:41:46 +08:00
|
|
|
pkgrel=4
|
2016-07-06 07:02:37 +08:00
|
|
|
epoch=1
|
2012-11-20 11:59:59 +08:00
|
|
|
url="http://digikam.sourceforge.net"
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('GPL')
|
2014-03-29 03:59:17 +08:00
|
|
|
options=("debug")
|
2016-01-21 10:24:45 +08:00
|
|
|
makedepends=('extra-cmake-modules' 'libkipi' 'libksane' 'liblqr' 'boost'
|
|
|
|
'libgpod' 'hugin' 'opencv' 'qt5-webkit' 'doxygen' 'lensfun' 'imagemagick' 'eigen3' 'libpgf'
|
2016-08-05 20:41:46 +08:00
|
|
|
'libusb' 'kio' 'kdoctools' 'marble' 'kfilemetadata' 'akonadi-contacts' 'qt5-multimedia'
|
2016-01-23 06:10:46 +08:00
|
|
|
'threadweaver' 'kcalcore' 'knotifyconfig' 'kdelibs4support' 'libkvkontakte' 'libmediawiki' 'mariadb')
|
2016-07-06 07:02:37 +08:00
|
|
|
source=("http://download.kde.org/stable/${pkgname}/${pkgname}-${_pkgver}.tar.xz")
|
|
|
|
sha1sums=('e0dec2eba9ab3a51d632b69b3dd6daf8dca64a45')
|
2016-01-21 10:24:45 +08:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
|
|
|
|
2016-07-06 07:02:37 +08:00
|
|
|
sed -e '/add_subdirectory(showfoto)/d' -i $pkgname-${_pkgver}/doc-translated/digikam/CMakeLists.txt
|
2016-01-21 10:24:45 +08:00
|
|
|
}
|
2012-11-20 11:59:59 +08:00
|
|
|
|
|
|
|
build() {
|
2015-06-17 20:20:09 +08:00
|
|
|
|
2016-01-21 10:24:45 +08:00
|
|
|
cd build
|
2014-12-31 06:46:05 +08:00
|
|
|
|
2016-04-28 17:34:18 +08:00
|
|
|
cmake ../${pkgname}-${_pkgver} \
|
2016-01-21 10:24:45 +08:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
|
|
-DBUILD_TESTING=OFF \
|
|
|
|
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
|
|
|
|
-DENABLE_KFILEMETADATASUPPORT=ON \
|
|
|
|
-DENABLE_MEDIAPLAYER=ON \
|
|
|
|
-DENABLE_AKONADICONTACTSUPPORT=ON \
|
2016-01-23 06:10:46 +08:00
|
|
|
-DENABLE_OPENCV3=ON \
|
2016-01-25 04:34:42 +08:00
|
|
|
-DENABLE_MYSQLSUPPORT=ON \
|
|
|
|
-DENABLE_INTERNALMYSQL=ON
|
2016-01-23 06:10:46 +08:00
|
|
|
|
2016-01-21 10:24:45 +08:00
|
|
|
make
|
2012-11-20 11:59:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package_digikam() {
|
2016-01-21 10:24:45 +08:00
|
|
|
pkgdesc="Digital photo management application for KDE"
|
|
|
|
depends=('liblqr' 'libkipi' 'lensfun' 'libpgf' 'opencv' 'akonadi-contact'
|
2016-01-23 06:10:46 +08:00
|
|
|
'knotifyconfig' 'libksane' 'kfilemetadata' 'qt5-multimedia' 'marble' 'mariadb')
|
2016-01-21 10:24:45 +08:00
|
|
|
optdepends=('kipi-plugins: more tools and plugins')
|
2012-11-20 11:59:59 +08:00
|
|
|
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/doc-translated/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
|
2012-11-20 11:59:59 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package_kipi-plugins() {
|
2016-01-21 10:24:45 +08:00
|
|
|
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'
|
2016-01-21 10:24:45 +08:00
|
|
|
'libgpod: iPodExport plugin'
|
|
|
|
'opencv: Remove Red Eyes plugin'
|
|
|
|
'imagemagick: Video SlideShow plugin'
|
|
|
|
'qt5-gstreamer: Video SlideShow plugin'
|
|
|
|
'threadweaver: panorama plugin'
|
|
|
|
'hugin: panorama plugin')
|
2012-11-20 11:59:59 +08:00
|
|
|
install=kipi-plugins.install
|
|
|
|
|
2016-07-06 17:20:42 +08: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
|
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
|
2016-01-21 10:24:45 +08:00
|
|
|
}
|