app=wavpack
version=5.3.0
build=1sml
homepage="https://www.wavpack.com"
download="https://www.wavpack.com/wavpack-$version.tar.xz"
desc="Hybrid lossless wavefile compressor"
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="
e4c831371984a32f79d522e067210295aed6ff94ebef89f2ec0fab32e225cb807bd11c980ae9177717d6a446c4795aaac8a7f69e1af14e317222d5601c13c0fd  wavpack-5.3.0.tar.lz
"
