summaryrefslogtreecommitdiff
path: root/extra/gimp-ufraw/PKGBUILD
blob: dcee11765702b83c1b77796fd67a5ddae126a62b (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
# $Id: PKGBUILD 139881 2011-10-05 19:06:39Z andrea $
# Maintainer: Tobias Kieslich <tobias@archlinux.org>

pkgname=gimp-ufraw
pkgver=0.18
pkgrel=2
pkgdesc="Standalone or gimp plugin converter for raw files"
url="http://ufraw.sourceforge.net/"
arch=('i686' 'x86_64')
license=('GPL')
depends=('gtkimageview' 'exiv2' 'lcms' 'bzip2' 'desktop-file-utils')
makedepends=('gimp' 'cinepaint')
optdepends=('gimp: to use the gimp import plugin for raw images'
            'cinepaint: to use the cinepaint import plugin for raw images')
install=gimp-ufraw.install
source=(http://downloads.sourceforge.net/ufraw/ufraw-${pkgver}.tar.gz)
md5sums=('454f40a402928998a82e2645d9265d96')
sha1sums=('41c9ad7aa7f1cbb63a6b0b330b3599b18a7e8cd2')

build() {
  cd "${srcdir}/ufraw-${pkgver}"

  ./configure --prefix=/usr \
              --enable-extras \
              --enable-mime \
              --enable-openmp
  sed -i "s/-ffast-math -fomit-frame-pointer -W -Wall -O3/${CFLAGS}/" Makefile
  make
}

package() {
  cd "${srcdir}/ufraw-${pkgver}"
  make DESTDIR="${pkgdir}" install
  rm -f "${pkgdir}/usr/bin/dcraw"
}