# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libraw
version=0.21.1
build=1sml
homepage="https://www.libraw.org/"
requires="gcc-libs libjpeg-turbo jasper lcms2"
desc="library for decoding raw digital photos"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version-build

  tar xf $srcdir/LibRaw-$version.tar.?z*

  cd LibRaw-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix="" \
    --disable-static \
    --enable-openmp 

  make
  make install DESTDIR=$pkg 

  cp LICENSE* $pkgdocs/

  mkfinalpkg
}

sha512sums="
8d11df0be2af5fd8a8251f150ccd59103319606f52effff541ee43e97ceb64f1a00a02bba7b730aedd0c1c705c1e465793c8a2a52769712c1102af7f5534dd5d  LibRaw-0.21.1.tar.gz
"
