# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=celt051 pkgver=0.5.1.3 pkgrel=0 pkgdesc="An audio codec for use in low-delay speech and audio communication" url="http://www.celt-codec.org/" arch="all" license="BSD" depends="" makedepends="libogg-dev" install="" subpackages="$pkgname-dev" source="http://downloads.us.xiph.org/releases/celt/celt-$pkgver.tar.gz fix-gnuc-prereq.patch " _builddir="$srcdir"/celt-$pkgver prepare() { local i cd "$_builddir" update_config_sub || return 1 for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="67e7b5e45db57a6f1f0a6962f5ecb190 celt-0.5.1.3.tar.gz c06dbc5c4867cbaf1163ac9bf709aea6 fix-gnuc-prereq.patch" sha256sums="fc2e5b68382eb436a38c3104684a6c494df9bde133c139fbba3ddb5d7eaa6a2e celt-0.5.1.3.tar.gz a4002f49a3e6856eae52d42b9c2d73a247581376ec8b2370b2d33cb4c9f211b4 fix-gnuc-prereq.patch" sha512sums="bf5621dc3ec1b0808bdd83f006fd7b88df1b6caffe07e18eb696c268b31c6c7127329ecb4c9582c44e0ecf9577bbe2f3dbe40f15b80f8681bb7f4115f1501921 celt-0.5.1.3.tar.gz 11008485bcf5dc61c107045c7ae292aa1296e54fc53ef835b58c38128f878af4021d14098ef87db9bf7e3162fac41739efa1522aa206c1a592244c57aa043663 fix-gnuc-prereq.patch"