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-0.1.6.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
"
