# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Contributor: Lauri Niskanen <ape@ape3000.com>
# Contributor: Ray Rashif <schivmeister@gmail.com>
# Contributor: Jon Nordby <jononor@gmail.com>

pkgname=celt0.5.1
_basename=celt
pkgver=0.5.1.3
pkgrel=5
pkgdesc="Low-latency audio communication codec - SPICE version"
arch=(x86_64 powerpc64le)
url="https://www.celt-codec.org"
license=('BSD')
depends=('libogg')
source=(https://ftp.osuosl.org/pub/xiph/releases/celt/celt-$pkgver.tar.gz)
md5sums=('67e7b5e45db57a6f1f0a6962f5ecb190')

build() {
  cd "$srcdir/celt-$pkgver"
  ./configure --prefix=/usr --build=${CHOST}
  make
}

package() {
  cd "$srcdir/celt-$pkgver"
  make DESTDIR="$pkgdir" install
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/BSD"
}
