APP=flac
VERSION=1.3.3
BUILD=1sml
HOMEPAGE='https://xiph.org/flac/index.html'
DOWNLOAD='https://ftp.osuosl.org/pub/xiph/releases/flac/flac-1.3.3.tar.xz'
DESC="Open-source lossless audio codec"
REQUIRES="libogg"

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

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

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-sse 

  make
  make install DESTDIR=$PKG

  cp COPYING* $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
18c8cf06afe739717331f00bacf1339694855d2870b1a2c47d7721f2e1fcd7ccc432518be1bdde10f68484d9abbc19f229759acf15b44b7aa2caf79ca810f7ad  flac-1.3.3.tar.lz
"
