APP=faad2
VERSION=2.9.2
BUILD=1sml
HOMEPAGE='https://github.com/knik0/faad2'
DOWNLOAD='https://github.com/knik0/faad2/archive/refs/tags/2_9_2.tar.gz'
DESC="HE, LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder"
REQUIRES="musl"

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

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

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

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
013af33c9c99bb93e1686312bd4497a9700ee0d6dd0eba26fde525456e9519896a61bb4762c0127e8d22a42be2eee97b78d659f312f6b32280e12a0d36fd2a5f  faad2-2.9.2.tar.lz
"
