PKGBUILD 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # $Id$
  2. # Maintainer (Arch): Ronald van Haren <ronald@archlinux.org>
  3. # Maintainer (Arch): Antonio Rojas <arojas@archlinux.org>
  4. # Contributor (Arch): Andrea Scarpino <andrea@archlinux.org>
  5. # Contributor (Arch): Tobias Powalowski <tpowa@archlinux.org>
  6. # Contributor: Andreas Grapentin <andreas@grapentin.org>
  7. # Contributor: André Silva <emulatorman@hyperbola.info>
  8. # Contributor: Márcio Silva <coadde@hyperbola.info>
  9. # Contributor: jc_gargma <jc_gargma@iserlohn-fortress.net>
  10. # parabola changes and rationale:
  11. # - remove libkvkontakte support for kipi-plugins
  12. pkgbase=digikam
  13. pkgname=(kipi-plugins)
  14. _pkgver=5.9.0
  15. pkgver=${_pkgver//-/_} # for beta versions
  16. pkgrel=1
  17. pkgrel+=.nonprism1
  18. pkgdesc="An advanced digital photo management application"
  19. arch=(x86_64)
  20. arch+=(i686 armv7h)
  21. license=(GPL)
  22. url="http://www.digikam.org/"
  23. makedepends=(extra-cmake-modules libkipi libksane liblqr opencv doxygen lensfun eigen boost kdoctools marble-common
  24. kfilemetadata akonadi-contacts qtav threadweaver kcalcore knotifyconfig libmediawiki libkvkontakte glu)
  25. source=("http://download.kde.org/stable/${pkgbase}/${pkgbase}-${_pkgver}.tar.xz")
  26. source+=("libre.patch" "nonprism.patch")
  27. sha256sums=('660d32eedcfd6fe1a75170a651fab068ae62f7f092ae710771a2f32a1c550d1b'
  28. '80fbe434d326551f3dc029c5db3ad1b50e87870b03185467aa25a5c03764cc89'
  29. 'e3d8ec4fd041a5545b7efef167d3b2ae6efc1f510832dabc7430ddfeb6b3c4ac')
  30. prepare() {
  31. mkdir -p build
  32. # fix freedom issues
  33. cd $pkgbase-$_pkgver
  34. patch -Np1 -i "$srcdir"/libre.patch
  35. patch -Np1 -i "$srcdir"/nonprism.patch
  36. }
  37. build() {
  38. cd build
  39. cmake ../$pkgbase-${_pkgver} \
  40. -DCMAKE_INSTALL_PREFIX=/usr \
  41. -DCMAKE_INSTALL_LIBDIR=lib \
  42. -DBUILD_TESTING=OFF \
  43. -DENABLE_KFILEMETADATASUPPORT=ON \
  44. -DENABLE_MEDIAPLAYER=ON \
  45. -DENABLE_AKONADICONTACTSUPPORT=ON \
  46. -DENABLE_MYSQLSUPPORT=ON \
  47. -DENABLE_OPENCV3=ON \
  48. -DENABLE_APPSTYLES=ON \
  49. -DENABLE_LEGACY=ON \
  50. -DDIGIKAMSC_COMPILE_LIBKVKONTAKTE=OFF
  51. make
  52. }
  53. package_kipi-plugins() {
  54. pkgdesc="A collection of plugins extending the KDE graphics and image applications as digiKam"
  55. pkgdesc+=", without nonfree suggestions and support for unsafe and dangerous for privacy protocols"
  56. depends=(kio libkipi)
  57. optdepends=('libmediawiki: MediaWiki Export plugin')
  58. cd build/extra
  59. make DESTDIR="$pkgdir" install
  60. cd $srcdir/build/po
  61. make DESTDIR="$pkgdir" install
  62. # Provided by digikam
  63. rm "$pkgdir"/usr/share/locale/*/LC_MESSAGES/digikam.mo
  64. }