# Maintainer: Developer <dev@opalos.org>
# Maintainer: Developer <dev@opalos.org>

pkgname=pcaudiolib
pkgver=%version%
pkgrel=%release%
pkgdesc='Portable C Audio Library'
url=https://github.com/espeak-ng/pcaudiolib
arch=('x86_64')
license=('GPL3')
depends=('alsa-lib' 'libpulse')
source=("$url/archive/$pkgver/$pkgname-$pkgver.tar.gz")
b2sums=('a16e50fd789a88f10a56323afd2637c13e2383392cc287aad4cd8ef3f1f475c2754dca53e0fd5453b5fc9ee45392a0b9b6d8d7a2d0e88214e6194bbc2ce1e1ff')

prepare() {
  cd $pkgname-$pkgver
  ./autogen.sh
}

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
