diff options
Diffstat (limited to 'community-testing/rawtherapee')
-rw-r--r-- | community-testing/rawtherapee/PKGBUILD | 54 | ||||
-rw-r--r-- | community-testing/rawtherapee/rawtherapee.install | 22 |
2 files changed, 76 insertions, 0 deletions
diff --git a/community-testing/rawtherapee/PKGBUILD b/community-testing/rawtherapee/PKGBUILD new file mode 100644 index 000000000..9ecd715fb --- /dev/null +++ b/community-testing/rawtherapee/PKGBUILD @@ -0,0 +1,54 @@ +# $Id: PKGBUILD 63266 2012-01-30 19:06:52Z ibiru $ +# Maintainer: Lukas Jirkovsky <l.jirkovsky AT gmail.com> +# Contributor: Bogdan Szczurek <thebodzio(at)gmail.com> +# Contributor: Vaclav Kramar <vaclav.kramar@tiscali.cz> +# Contributor: Archie <mymaud@gmail.com> + +pkgname=rawtherapee +pkgver=4.0.6 +pkgrel=2 +pkgdesc="RAW photo editor" +arch=('i686' 'x86_64') +url="http://www.rawtherapee.com/" +license=('GPL') +depends=('bzip2' 'gtkmm' 'libiptcdata' 'lcms2' 'desktop-file-utils' 'hicolor-icon-theme') +makedepends=('mercurial' 'cmake') +install=rawtherapee.install +source=() +md5sums=() + +_root="https://rawtherapee.googlecode.com/hg/" +_repo="rawtherapee" + +build() { + cd "$srcdir" + msg "Connecting to Mercurial server...." + + if [ -d $_repo ] ; then + cd $_repo + hg pull + hg up "$pkgver" + msg "The local files are updated." + else + hg clone -u "$pkgver" $_root $_repo + fi + + msg "Mercurial checkout done or server timeout" + msg "Starting make..." + + if [ -e "$srcdir/$_repo-build" ]; then + rm -rf "$srcdir/$_repo-build" + fi + mkdir "$srcdir/$_repo-build" + cd "$srcdir/$_repo-build" + + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + ../$_repo + make +} + +package() { + cd "$srcdir/$_repo-build" + make DESTDIR="$pkgdir/" install +} diff --git a/community-testing/rawtherapee/rawtherapee.install b/community-testing/rawtherapee/rawtherapee.install new file mode 100644 index 000000000..385eec8f4 --- /dev/null +++ b/community-testing/rawtherapee/rawtherapee.install @@ -0,0 +1,22 @@ +post_install() { + echo "update desktop mime database..." + update-desktop-database -q + update-mime-database usr/share/mime 1>&2 > /dev/null + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install $1 + + if [ ${2%%_*} == "3.0a1" ]; then + echo "There were lots of changes to the behavior of the majority of tools." + echo "This may cause your files to look differently than before." + fi +} + +post_remove() { + post_install $1 +} + + +# vim:set ts=2 sw=2 et: |