File PKGBUILD of Package portaudio-opensuse

# $Id$
# Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
# Contributor: Eric Belanger <eric@archlinux.org>
# Contributor: Darwin Bautista <djclue917@gmail.com>
# Contributor: Bob Finch <w9ya@qrparci.net>

pkgname=portaudio
pkgver=20210406~git.1713568167.db778cf
pkgrel=0
pkgdesc='A free, cross-platform, open source, audio I/O library.'
arch=('x86_64')
url='http://www.portaudio.com/'
license=('custom')
depends=('gcc-libs' 'jack2' 'libcurl-gnutls' 'pulseaudio' 'libtool' 'autoconf' 'automake')
conflicts=('portaudio_cpp')
provides=('portaudio_cpp')
replaces=('portaudio_cpp')
options=('!makeflags')
source=("pa_stable-v$pkgver.tar.xz")
md5sums=('SKIP')

build() {
  cd "$srcdir/pa_stable-v$pkgver"

  libtoolize -f -i
  aclocal --force
  automake -afc 2>&1 | grep -vF Makefile.am; true
  autoconf --force
  mkdir bindings/cpp/m4
  cd bindings/cpp
  autoreconf -fiv
  cd ../..
  # cp -a /usr/share/automake-1.16/depcomp .
  
  ./configure --disable-static --prefix=/usr --enable-cxx=yes
  make
}

prepare() {
 cd "$srcdir/pa_stable-v$pkgver"
}

package() {
  cd "$srcdir/pa_stable-v$pkgver"

  make DESTDIR="$pkgdir" install
  install -Dm0644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}

openSUSE Build Service is sponsored by