APP=libvpx
VERSION=1.8.2
BUILD=1sml
HOMEPAGE='https://github.com/webmproject/libvpx'
DOWNLOAD='https://github.com/webmproject/libvpx/archive/refs/tags/v1.8.2.tar.gz'
DESC="provides the WebM VP8/VP9 codec libraries"
REQUIRES="gcc-libs nasm"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  sed -i 's/cp -p/cp/' build/make/Makefile 

  ./configure \
    --prefix="///" \
    --enable-shared \
    --disable-static

  make
  make install DESTDIR=$PKG

  cp LICENSE $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
2f038cf1f3306ca70c6888d9bf9853dcb0f97bfca0fa28963596da4cf39939a4e2e67e0363c674326c17dbb562ce92a5ee39131881a39d88fd2588980d3f3d0f  libvpx-1.8.2.tar.lz
"
