1 # Maintainer: Christian Himpel <chressie at gmail dot com>
2 # Contributor: Johannes Hanika <hanatos at gmail dot com>
3 # Contributor: Kevin Brubeck Unhammer <unhammer at member dot fsf dot org>
4 # Contributor: orbisvicis <orbisvicis at gmail dot com>
9 pkgdesc="A virtual lighttable and darkroom for photographers"
11 url=http://darktable.sourceforge.net/
13 depends=(sqlite3 gconf hicolor-icon-theme desktop-file-utils lcms2 lensfun
14 exiv2 openexr librsvg libgphoto2 sdl mesa libgnome-keyring flickcurl)
15 makedepends=(git intltool cmake)
21 install=darktable.install
22 source=(darktable.install)
23 md5sums=(b1d1f094aec82e7b6eaeaba1e961a074)
25 _gitroot=git://darktable.git.sf.net/gitroot/darktable/darktable
29 local _gitdir="${srcdir}/${_gitname}"
30 msg "Connecting to GIT server...."
32 if [[ -d "${_gitdir}/.git" ]]; then
33 cd "${_gitdir}" && git pull
34 msg "The local files are updated."
36 git clone "${_gitroot}" "${_gitdir}"
39 msg "GIT checkout done or server timeout"
40 msg "Starting make..."
45 [[ ! -d build ]] && mkdir build
49 -DCMAKE_INSTALL_PREFIX=/usr \
50 -DCMAKE_BUILD_TYPE=Release \
51 -DBUILD_USERMANUAL=False \
52 -DDONT_INSTALL_GCONF_SCHEMAS=True \
53 -DUSE_GCONF_BACKEND=True \
59 cd "${srcdir}/${_gitname}/build"
60 make DESTDIR="${pkgdir}" install
62 # Attribute versioning information to the documentation
63 mv "${pkgdir}/usr/share/doc/darktable" "${pkgdir}/usr/share/doc/${pkgname}-${pkgver}"
65 # Move "darktable.schemas" to "usr/share/gconf/schemas/" (standard location for Arch Linux)
66 # letting makepkg/emptydirs delete the now-empty previous schemas directory
67 mkdir -p "${pkgdir}/usr/share/gconf/schemas/"
68 mv "${pkgdir}/etc/gconf/schemas/darktable.schemas" "${pkgdir}/usr/share/gconf/schemas/"