APP=libsamplerate
VERSION=0.1.9
BUILD=1sml
HOMEPAGE='https://github.com/libsndfile/libsamplerate'
DOWNLOAD='https://github.com/libsndfile/libsamplerate/archive/refs/tags/0.1.9.tar.gz'
DESC="library for performing sample rate conversion of audio data"
REQUIRES="alsa-lib libsndfile libogg libvorbis flac"

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

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

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --disable-static \
    $BUILDDIST

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
74f1d8fc8ba378e75af33834aa174a4bb7a7b65e0adf76b148397a9f32b9b27d9127ceb77e78a8869071543bf03a5aa79a290eb1b9542c9fb1a34bfdd95b27e2  libsamplerate-0.1.9.tar.lz
"
