diff options
Diffstat (limited to 'community-staging/darktable')
-rw-r--r-- | community-staging/darktable/PKGBUILD | 43 | ||||
-rw-r--r-- | community-staging/darktable/darktable.install | 22 |
2 files changed, 65 insertions, 0 deletions
diff --git a/community-staging/darktable/PKGBUILD b/community-staging/darktable/PKGBUILD new file mode 100644 index 000000000..5b81d0475 --- /dev/null +++ b/community-staging/darktable/PKGBUILD @@ -0,0 +1,43 @@ +# $Id: PKGBUILD 56175 2011-10-02 21:04:18Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Maintainer: Christian Himpel <chressie at gmail dot com> +# Contributor: Johannes Hanika <hanatos at gmail dot com> + +pkgname=darktable +pkgver=0.9.2 +_pkgver=0.9 +pkgrel=2 +pkgdesc="Utility to organize and develop raw images" +arch=('i686' 'x86_64') +url=http://darktable.sf.net/ +license=('GPL3') +depends=('exiv2>=0.18' 'gconf>=2.26' 'intltool>=0.40' 'lcms2' 'lensfun>=0.2.3' 'libglade' + 'curl' 'libgnome-keyring' 'libgphoto2' 'libusb-compat' 'openexr' 'sqlite3') +makedepends=('intltool>=0.40' 'cmake' 'sqlite3') +optdepends=( 'librsvg') +install=darktable.install +options=(!libtool) +source=(http://downloads.sourceforge.net/project/darktable/darktable/${_pkgver}/darktable-$pkgver.tar.gz) +md5sums=('08377e80ad77c7b11f742f26fddb80f1') + +build() { + cd $srcdir/$pkgname-$pkgver + mkdir -p build + cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_USERMANUAL=False \ + -DDONT_INSTALL_GCONF_SCHEMAS=True \ + -DBINARY_PACKAGE_BUILD=1 \ + .. + make +} + +package() { + cd $srcdir/$pkgname-$pkgver/build + make DESTDIR=$pkgdir install + mv "${pkgdir}/usr/share/doc/darktable" "${pkgdir}/usr/share/doc/${pkgname}-${pkgver}" + mkdir -p "${pkgdir}/usr/share/gconf/schemas/" + mv "${pkgdir}/etc/gconf/schemas/darktable.schemas" "${pkgdir}/usr/share/gconf/schemas/" +} diff --git a/community-staging/darktable/darktable.install b/community-staging/darktable/darktable.install new file mode 100644 index 000000000..b92aab488 --- /dev/null +++ b/community-staging/darktable/darktable.install @@ -0,0 +1,22 @@ +pkgname=darktable + +post_install() { + usr/sbin/gconfpkg --install ${pkgname} + [ -x `which update-desktop-database` ] && update-desktop-database -q +} + +pre_upgrade() { + pre_remove +} + +post_upgrade() { + post_install +} + +pre_remove() { + usr/sbin/gconfpkg --uninstall ${pkgname} +} + +post_remove() { + [ -x `which update-desktop-database` ] && update-desktop-database -q +} |