app=libwebp
version=1.1.0
build=1sml
homepage="https://developers.google.com/speed/webp/"
download="https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.1.0.tar.gz"
desc="WebP library and conversion tools"
requires="giflib libpng zstd libtiff"

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

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --disable-static \
    --disable-silent-rules \
    --enable-everything \
    --enable-swap-16bit-csp 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
5df747f059b0e92ea090ce08d74990944e6cd4d60afbbefa17528887ef805dea70bb4c16afabdaf72df7c71408117338f0e81cc389848675de3416d793757d37  libwebp-1.1.0.tar.lz
"
