desktop/digikam/PKGBUILD

84 lines
2.5 KiB
Bash
Raw Normal View History

pkgbase=digikam
pkgname=('digikam' 'kipi-plugins')
2016-04-28 17:34:18 +08:00
_pkgver=5.0.0-beta6
pkgver=${_pkgver//-/_}
2016-05-17 21:17:25 +08:00
pkgrel=2
url="http://digikam.sourceforge.net"
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'
'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 17:34:18 +08:00
source=("http://download.kde.org/unstable/${pkgname}/${pkgname}-${_pkgver}.tar.bz2")
sha1sums=('a98b2371e9749ed244c4aa0d0885514eeeec5112')
prepare() {
mkdir -p build
2016-04-28 17:34:18 +08:00
sed -e 's|${KF5_MIN_VERSION}||' -i $pkgname-$_pkgver/core/CMakeLists.txt -i $pkgname-$_pkgver/extra/kipi-plugins/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 \
-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 \
-DENABLE_MYSQLSUPPORT=ON \
-DENABLE_INTERNALMYSQL=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'
2016-01-23 06:10:46 +08:00
'knotifyconfig' 'libksane' 'kfilemetadata' 'qt5-multimedia' 'marble' 'mariadb')
optdepends=('kipi-plugins: more tools and plugins')
install=digikam.install
pushd build/core
make DESTDIR="${pkgdir}" install
popd
pushd build/doc/digikam
make DESTDIR="${pkgdir}" install
popd
}
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
pushd build/extra/kipi-plugins
make DESTDIR="${pkgdir}" install
popd
2014-11-25 01:25:34 +08:00
pushd build/doc/kipi-plugins
2015-10-18 21:05:54 +08:00
make DESTDIR="${pkgdir}" install
popd
}