Browse code

First commit

Qurban Ullah authored on 27/02/2018 18:17:48
Showing 2 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,69 @@
1
+# $Id$
2
+# Maintainer: Qurban Ullah <qurbanullah@avouch.org>
3
+# Contributor: Qurban Ullah <qurbanullah@avouch.org>
4
+
5
+pkgbase=digikam
6
+pkgname=(digikam kipi-plugins)
7
+_pkgver=5.8.0
8
+pkgver=${_pkgver//-/_} # for beta versions
9
+pkgrel=1
10
+pkgdesc="An advanced digital photo management application"
11
+arch=('x86_64')
12
+license=('GPL')
13
+url="http://www.digikam.org/"
14
+makedepends=(extra-cmake-modules libkipi libksane liblqr opencv doxygen lensfun eigen boost kdoctools marble-common
15
+             kfilemetadata akonadi-contacts qtav threadweaver kcalcore knotifyconfig libmediawiki libkvkontakte)
16
+source=("http://download.kde.org/stable/${pkgname}/${pkgname}-${_pkgver}.tar.xz")
17
+sha256sums=('194a44cc3ca229d501acfba67a38d483d1d64069a85e0491dd28dc2b57091c6e')
18
+
19
+prepare() {
20
+  mkdir -p build
21
+}
22
+
23
+build() {
24
+  cd build
25
+
26
+  cmake ../${pkgname}-${_pkgver} \
27
+    -DCMAKE_INSTALL_PREFIX=/usr \
28
+    -DCMAKE_INSTALL_LIBDIR=lib \
29
+    -DCMAKE_BUILD_TYPE=Release \
30
+    -DBUILD_TESTING=OFF \
31
+    -DENABLE_KFILEMETADATASUPPORT=ON \
32
+    -DENABLE_MEDIAPLAYER=ON \
33
+    -DENABLE_AKONADICONTACTSUPPORT=ON \
34
+    -DENABLE_MYSQLSUPPORT=ON \
35
+    -DENABLE_OPENCV3=ON \
36
+    -DENABLE_APPSTYLES=ON
37
+  make ${MAKEFLAGS}
38
+}
39
+
40
+package_digikam() {
41
+  depends=(liblqr libkipi lensfun opencv akonadi-contacts knotifyconfig libksane kfilemetadata qtav marble-common threadweaver kcalcore)
42
+  optdepends=('kipi-plugins: export to various online services'
43
+              'hugin: panorama tool' 'qt5-imageformats: support for additional image formats (WEBP, TIFF)')
44
+
45
+  cd build/core
46
+  make DESTDIR="$pkgdir" install
47
+  cd $srcdir/build/doc
48
+  make DESTDIR="$pkgdir" install
49
+  cd $srcdir/build/po
50
+  make DESTDIR="$pkgdir" install
51
+
52
+# Provided by kipi-plugins
53
+  rm "$pkgdir"/usr/share/locale/*/LC_MESSAGES/kipiplugin*.mo
54
+}
55
+
56
+package_kipi-plugins() {
57
+  pkgdesc="A collection of plugins extending the KDE graphics and image applications as digiKam"
58
+  depends=(kio libkipi)
59
+  optdepends=('libmediawiki: MediaWiki Export plugin'
60
+              'libkvkontakte: VKontakte.ru Exporter plugin')
61
+
62
+  cd build/extra
63
+  make DESTDIR="$pkgdir" install
64
+  cd $srcdir/build/po
65
+  make DESTDIR="$pkgdir" install
66
+
67
+# Provided by digikam
68
+  rm "$pkgdir"/usr/share/locale/*/LC_MESSAGES/digikam.mo
69
+}
0 70
new file mode 100644
... ...
@@ -0,0 +1,10 @@
1
+[Desktop Entry]
2
+Categories=Qt;KDE;Graphics;Photography;
3
+Exec=digikam --download-from %f
4
+GenericName=Photo Management Program
5
+Icon=digikam
6
+MimeType=x-content/image-dcf;x-content/image-picturecd;
7
+Name=digiKam
8
+NoDisplay=true
9
+Terminal=false
10
+Type=Application