# Maintainer: PktSurf <smlinux@pktsurf.in>
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"

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

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

build() {
  ./configure \
    --prefix="" \
    --enable-cxx \
    --disable-static

  make -j1
  make install DESTDIR=$pkg 

  cp LICENSE.txt $pkgdocs/

  mkfinalpkg
}

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