app=sbc
version=1.4
build=1sml
homepage="https://www.kernel.org/pub/linux/bluetooth"
download="https://www.kernel.org/pub/linux/bluetooth/sbc-$version.tar.xz"
desc="Bluetooth audio library"
requires="musl"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version 
  fixbuilddirpermissions

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

  make
  make install DESTDIR=$pkg 

  cp COPYING* ChangeLog $pkgdocs/

  mkfinalpkg
}

sha512sums="
eb31d73cccfff76a74befc44f7c5ea7a40b4dc22787f4d1ce10a787ee480ebafda4235c8abb5ccefda6804e47d0cc414a6ccd4f3acf6abb00109d3db7cfaa9a5  sbc-1.4.tar.lz
"
