app=opus
version=1.3.1
build=1sml
homepage="https://opus-codec.org/"
download="https://archive.mozilla.org/pub/opus/opus-$version.tar.gz"
desc="Open, royalty-free audio codec standardised by IETF"
requires="musl"

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

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

  ./configure \
    --prefix="" \
    --disable-static \
    --disable-doc 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
5cce20210130b6ade405f4d6489b383c151f130af79ba0fffa8e0d71df1ad158373f734f0746bcbe94a23e5e873d71bf5b03019183c2c9cbb218bfb0c81d7b3f  opus-1.3.1.tar.lz
"
