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="spiky <spiky@nutyx.org>"
contributors="Tnut"

makedepends=(automake autoconf m4 perl libjpeg-turbo jasper lcms2)

name=libraw
version=0.21.1

source=(http://www.libraw.org/data/LibRaw-$version.tar.gz)
build ()
{
cd LibRaw-$version
autoreconf -fiv
./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
}
