APP=portaudio
VERSION=19.6.0
BUILD=1sml
HOMEPAGE='https://github.com/portaudio/portaudio/'
DESC="cross-platform audio I/O library"
REQUIRES="gcc-libs alsa-lib"

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

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

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --enable-cxx \
    --disable-static

  make -j1
  make install DESTDIR=$PKG 

  cp LICENSE.txt $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
8fafbd9ba84e60408d8861c55438641ef85e7cafd92010e79e5cdfdaa43bedcc10cebd8214872193ca942914b13d8d556abfc2e88ddcd898a1f744896d64fc1a  portaudio-19.6.0.tar.lz
"
