app=fdk-aac
version=0.1.6
build=1sml
homepage="https://sourceforge.net/projects/opencore-amr/"
download="https://sourceforge.net/projects/opencore-amr/files/fdk-aac/fdk-aac-$version.tar.gz"
desc="AAC audio encoding and decoding library"
requires="musl"

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

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

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

  make
  make install DESTDIR=$pkg

  cp NOTICE OWNERS $pkgdocs/

  mkfinalpkg
}

sha512sums="
bcd13ff7198346a7f19acc8e81d24e824f3604b5f96cc0caeacf64eedd3ac828ff78c4f4d4387b7db4e8dbdd475fb5f931ec8412bd465757711a648082e3e99c  fdk-aac-0.1.6.tar.lz
"
