PKGBUILD 2.22 KB
Newer Older
Manuel Tortosa's avatar
Manuel Tortosa committed
1
#
2
# Apps Packages for Chakra, part of chakra-project.org
Manuel Tortosa's avatar
Manuel Tortosa committed
3 4 5
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
Manuel Tortosa's avatar
Manuel Tortosa committed
6

abveritas's avatar
abveritas committed
7
pkgbase=digikam
Neo's avatar
Neo committed
8
pkgname=('digikam' 'kipi-plugins' 'libkvkontakte')
9
pkgver=2.5.0
10
pkgrel=1
abveritas's avatar
abveritas committed
11
url="http://digikam.sourceforge.net"
Manuel Tortosa's avatar
Manuel Tortosa committed
12 13
arch=('i686' 'x86_64')
license=('GPL')
14
makedepends=('kde-runtime' 'kdegraphics-kgamma' 'kdepimlibs' 'lensfun' 'kdeedu-marble' 'liblqr' 'opencv' 'lapack' 'libgpod'
Neo's avatar
Neo committed
15
	     'pkgconfig' 'cmake' 'automoc4' 'doxygen' 'docbook-xsl' 'qjson')
abveritas's avatar
abveritas committed
16
source=(http://sourceforge.net/projects/digikam/files/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2)
17
md5sums=('770355060d2033a044c21b0f155be00c')
Manuel Tortosa's avatar
Manuel Tortosa committed
18 19 20 21

build() {
   cd ${srcdir}

philm's avatar
philm committed
22
   mkdir -p build
Manuel Tortosa's avatar
Manuel Tortosa committed
23 24 25 26
   cd build
   cmake ../${pkgname}-${pkgver} \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_SKIP_RPATH=ON
abveritas's avatar
abveritas committed
27 28 29 30 31
   make 
}

package_digikam() {
  pkgdesc="Digital photo management application for kde"
32
  depends=('kde-runtime' 'kdegraphics-kgamma' 'kdepimlibs' 'lensfun' 'kdeedu-marble' 'liblqr' 'opencv' 'kipi-plugins' 'lapack' 'libgpod')
abveritas's avatar
abveritas committed
33 34
  install=digikam.install
  replaces=('digikamimageplugins')
35
  categories=('graphics')
abveritas's avatar
abveritas committed
36 37 38 39 40 41

  splitdirs="core doc po"
  for i in ${splitdirs} ; do
      cd ${srcdir}/build/${i}
      make DESTDIR="${pkgdir}" install
  done
Neo's avatar
Neo committed
42
  rm -rf "${pkgdir}/usr/share/icons/oxygen"
abveritas's avatar
abveritas committed
43 44
}

Neo's avatar
Neo committed
45 46 47 48 49 50 51 52
package_libkvkontakte() {
  pkgdesc="KDE C++ library for asynchronous interaction with vkontakte.rusocial network"
  depends=('kdelibs')

  cd "${srcdir}"/build/extra/libkvkontakte
  make DESTDIR="${pkgdir}" install
}

abveritas's avatar
abveritas committed
53 54
package_kipi-plugins() {
  pkgdesc="Kipi plugins and additional libs for digikam and kde apps"
Neo's avatar
Neo committed
55
  depends=('kdegraphics-kgamma' 'kdepimlibs' 'opencv' 'libgpod' 'sane' 'hugin-tools' 'libgphoto2-nolimit' 'libkvkontakte')
abveritas's avatar
abveritas committed
56 57 58 59 60 61
  optdepends=('imagemagick: for picture manipulation'
	      'qca: for shwup webservice support')
  install=kipi-plugins.install
  provides=('libkface libkgeomap libmediawiki')
  replaces=('libkface libkgeomap libmediawiki')
  conflicts=('libkface libkgeomap libmediawiki')
62
  categories=('graphics')
abveritas's avatar
abveritas committed
63 64 65 66 67 68

  splitdirs="libkface libkgeomap libmediawiki kipi-plugins"
  for i in ${splitdirs} ; do
      cd ${srcdir}/build/extra/${i}
      make DESTDIR="${pkgdir}" install
  done
69
}