db-move: moved seahorse from [testing] to [extra] (x86_64)
[arch-packages.git] / opencore-amr / trunk / PKGBUILD
blobe3c4c62cad4530b9debd64af756561c68092824c
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 sha512sums=('8955169954b09d2d5e2190888602c75771b72455290db131ab7f40b587df32ea6a60f205126b09193b90064d0fd82b7d678032e2b4c684189788e175b83d0aa7')
16 b2sums=('5f2f618b6d80d667fd99f1df8793cf0260d582e2fc8021f4af35d60b2b1db7be7c897d4b78589da5a442e684161cecef005ec4247cef7a9c3df797c68db97d52')
18 prepare() {
19   cd $pkgname-$pkgver
20   autoreconf -fiv
23 build() {
24   cd $pkgname-$pkgver
25   ./configure \
26     --prefix=/usr \
27     --disable-static \
28     --enable-examples
30   # prevent excessive overlinking due to libtool
31   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
32   make
35 package() {
36   make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
37   install -vDm 644 $pkgname-$pkgver/{ChangeLog,README} -t "$pkgdir/usr/share/doc/$pkgname/"