summaryrefslogtreecommitdiff
path: root/community/kphotoalbum/PKGBUILD
blob: 834afe33f5f74c8033a6bf9c738716cbd2a324d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# $Id: PKGBUILD 57929 2011-11-04 16:33:01Z lcarlier $
# Maintainer: Laurent Carlier <lordheavym@gmail.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Gilles CHAUVIN <gcnweb ][ gmail ? com>
# Contributor: Jonathan Schaeffer <joschaeffer ][ gmail ? com>
# Contributor: chfoxli <lg ][ romandie ? com>

pkgname=kphotoalbum
pkgver=4.1.1
pkgrel=11
pkgdesc="KDE Photo Album, picture collection manager"
url="http://www.kphotoalbum.org/"
arch=('i686' 'x86_64')
license=('GPL')
depends=('kdebase-runtime' 'libkipi' 'libkexiv2' 'libkdcraw')
makedepends=('cmake' 'automoc4' 'kdeedu-marble' 'kdemultimedia-mplayerthumbs')
optdepends=('kdeedu-marble: integration with Marble'
	'kipi-plugins: add extra functionality'
	'kdemultimedia-mplayerthumbs: video thumbnails')
install=${pkgname}.install
source=("ftp://ftp.archlinux.org/other/community/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
        'fix-docbook-build.patch'
        'fix-with-exiv2-0.21.patch')
md5sums=('c00a5f179e487ac89fccf8dfb3cd6ef0'
         '1b48553af74f0488fdad55758e911e3a'
         '9238101a2d7450e6dd822778807dd7bd')

build() {
  cd ${srcdir}

  patch -Np0 -i ${srcdir}/fix-docbook-build.patch
  patch -Np0 -i ${srcdir}/fix-with-exiv2-0.21.patch

  mkdir build
  cd build

  cmake ../${pkgname}-${pkgver} \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd ${srcdir}/build

  make DESTDIR=${pkgdir} install
}