description="A library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others)"
url="http://www.libraw.org/"

packager="tnut<tnut@nutyx.org>"

makedepends=(libjpeg-turbo2 jasper lcms2)

name=libraw
version=0.20.0

source=(http://www.libraw.org/data/LibRaw-$version.tar.gz)
build ()
{
cd LibRaw-$version
./configure --prefix=/usr \
 --enable-jpeg \
 --enable-jasper \
 --enable-lcms \
 --disable-static \
 --docdir=/usr/share/doc/libraw-$version
make
make DESTDIR=$PKG install

rm $PKG/usr/lib/libraw{,_r}.la
}
