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-$version.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
"
