2016-01-21 10:24:45 +08:00
|
|
|
pkgbase=digikam
|
2015-06-17 20:20:09 +08:00
|
|
|
pkgname=('digikam' 'kipi-plugins')
|
2016-04-28 00:41:55 +08:00
|
|
|
pkgver=5.0.0-beta6
|
2016-04-20 01:04:47 +08:00
|
|
|
pkgrel=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'
|
|
|
|
'libusb' 'kio' 'kdoctools' 'marble' 'kfilemetadata' 'akonadi-contact' 'qt5-multimedia'
|
2016-01-23 06:10:46 +08:00
|
|
|
'threadweaver' 'kcalcore' 'knotifyconfig' 'kdelibs4support' 'libkvkontakte' 'libmediawiki' 'mariadb')
|
2016-04-28 00:41:55 +08:00
|
|
|
source=("http://download.kde.org/unstable/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
|
2016-04-20 01:04:47 +08:00
|
|
|
sha1sums=('b3fb866e364df19bae4cf44676cd6d4161b71d70')
|
2016-01-21 10:24:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
|
|
|
|
2016-04-28 00:41:55 +08:00
|
|
|
sed -e 's|${KF5_MIN_VERSION}||' -i $pkgname-$pkgver/core/CMakeLists.txt -i $pkgname-$pkgver/extra/kipi-plugins/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 00:41:55 +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 \
|
|
|
|
-DDIGIKAMSC_CHECKOUT_PO=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-01-21 10:24:45 +08:00
|
|
|
pushd build/core
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd build/doc/digikam
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
popd
|
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'
|
|
|
|
# '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')
|
2012-11-20 11:59:59 +08:00
|
|
|
install=kipi-plugins.install
|
|
|
|
|
2016-01-21 10:24:45 +08:00
|
|
|
pushd build/extra/kipi-plugins
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
popd
|
2014-11-25 01:25:34 +08:00
|
|
|
|
2016-01-21 10:24:45 +08:00
|
|
|
pushd build/doc/kipi-plugins
|
2015-10-18 21:05:54 +08:00
|
|
|
make DESTDIR="${pkgdir}" install
|
2016-01-21 10:24:45 +08:00
|
|
|
popd
|
|
|
|
}
|