db-move: moved polari from [testing] to [extra] (x86_64)
[arch-packages.git] / opencore-amr / repos / extra-x86_64 / PKGBUILD
bloba89281a384735d03311a27995a77a581d379d30e
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Ionut Biru <ionut@archlinux.ro>
3 # Contributor: WAntilles <wantilles@adslgr.com>
5 pkgname=opencore-amr
6 pkgver=0.1.6
7 pkgrel=1
8 pkgdesc="Open source implementation of the Adaptive Multi Rate (AMR) speech codec"
9 arch=(x86_64)
10 license=(Apache)
11 url="https://sourceforge.net/projects/opencore-amr/"
12 source=(https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
13 depends=(glibc)
14 provides=(libopencore-amrwb.so libopencore-amrnb.so)
15 options=(debug)
16 sha512sums=('8955169954b09d2d5e2190888602c75771b72455290db131ab7f40b587df32ea6a60f205126b09193b90064d0fd82b7d678032e2b4c684189788e175b83d0aa7')
17 b2sums=('5f2f618b6d80d667fd99f1df8793cf0260d582e2fc8021f4af35d60b2b1db7be7c897d4b78589da5a442e684161cecef005ec4247cef7a9c3df797c68db97d52')
19 prepare() {
20   cd $pkgname-$pkgver
21   autoreconf -fiv
24 build() {
25   cd $pkgname-$pkgver
26   ./configure \
27     --prefix=/usr \
28     --disable-static \
29     --enable-examples
31   # prevent excessive overlinking due to libtool
32   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
33   make
36 package() {
37   make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
38   install -vDm 644 $pkgname-$pkgver/{ChangeLog,README} -t "$pkgdir/usr/share/doc/$pkgname/"