# $Id: PKGBUILD 45102 2009-07-07 02:26:53Z eric $ # Maintainer: tobias # Contributor: Tobias Kieslich pkgname=gimp-ufraw _srcname=ufraw pkgver=0.15 pkgrel=4 pkgdesc="standalone or gimp plugin converter for raw files" url="http://ufraw.sourceforge.net/" arch=(i686 x86_64) license=(GPL2) depends=('lcms' 'gtk2' 'libexif' 'exiv2>=0.18') makedepends=('gimp' 'cinepaint' 'pkgconfig') optdepends=('gimp: to use the gimp import plugin for raw images' \ 'cinepaint: to use the cinepaint import plugin for raw images') source=(http://downloads.sourceforge.net/sourceforge/${_srcname}/${_srcname}-${pkgver}.tar.gz ufraw-0.15-glibc-2.10.patch) md5sums=('6d8f6c98a388c438784cd909dd82d540' '18774fd178266f18c398b22f99783860') build() { cd ${srcdir}/${_srcname}-${pkgver} patch -p1 < ../ufraw-0.15-glibc-2.10.patch || return 1 ./configure --prefix=/usr \ --enable-extras \ --enable-mime \ --enable-openmp \ --with-libexif --with-exiv2 || return 1 sed -i "s/-ffast-math -fomit-frame-pointer -W -Wall -O3/${CFLAGS}/" Makefile || return 1 make || return 1 make DESTDIR=${pkgdir} install || return 1 rm -f ${pkgdir}/usr/bin/dcraw }