APP=opus
VERSION=1.3.1
BUILD=1sml
HOMEPAGE='https://opus-codec.org/'
DOWNLOAD='https://archive.mozilla.org/pub/opus/opus-1.3.1.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
"
