summaryrefslogtreecommitdiff
path: root/community-testing/darktable
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-04 00:02:16 +0000
committerroot <root@rshg054.dnsready.net>2012-08-04 00:02:16 +0000
commitf8ac5d4703080cc87ba2fe36f68df745d3a5f62f (patch)
tree641ccb335800a868031ab1d89d554e5c1b0f0d9a /community-testing/darktable
parent60f7eab28ba0dd57c8ce519609f393dd3931b621 (diff)
Sat Aug 4 00:02:16 UTC 2012
Diffstat (limited to 'community-testing/darktable')
-rw-r--r--community-testing/darktable/PKGBUILD46
-rw-r--r--community-testing/darktable/darktable.install23
2 files changed, 69 insertions, 0 deletions
diff --git a/community-testing/darktable/PKGBUILD b/community-testing/darktable/PKGBUILD
new file mode 100644
index 000000000..5ee3e0125
--- /dev/null
+++ b/community-testing/darktable/PKGBUILD
@@ -0,0 +1,46 @@
+# $Id: PKGBUILD 74728 2012-08-02 15:23:34Z andrea $
+# 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=1.0.5
+_pkgver=1.0
+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' 'intltool>=0.40' 'lcms2' 'lensfun>=0.2.3' 'libglade' 'dbus-glib'
+ 'curl' 'libgnome-keyring' 'libgphoto2' 'libusb-compat' 'openexr' 'sqlite')
+makedepends=('intltool>=0.40' 'cmake' 'librsvg')
+# 'gnome-doc-utils' 'libxslt' 'fop')
+optdepends=('librsvg')
+install=darktable.install
+options=(!libtool)
+source=(http://downloads.sourceforge.net/project/darktable/darktable/${_pkgver}/darktable-$pkgver.tar.gz)
+md5sums=('9ad88a1a6b9761fce28c8073d8f47941')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+# mv doc/usermanual/CMakeLists.tx doc/usermanual/CMakeLists.txt
+ mkdir -p build
+ cd build
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DDONT_INSTALL_GCONF_SCHEMAS=True \
+ -DBINARY_PACKAGE_BUILD=1 \
+ -DUSE_GCONF_BACKEND=Off \
+ -DBUILD_USERMANUAL=False \
+ ..
+ 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-testing/darktable/darktable.install b/community-testing/darktable/darktable.install
new file mode 100644
index 000000000..9fd6af293
--- /dev/null
+++ b/community-testing/darktable/darktable.install
@@ -0,0 +1,23 @@
+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}
+ true
+}
+
+post_remove() {
+ [ -x `which update-desktop-database` ] && update-desktop-database -q
+}