updated on Tue Jan 17 00:10:10 UTC 2012
[aur-mirror.git] / opencore-amr-git / PKGBUILD~
blobfb8fc6b602e959838316940d80f41e240b217cd0
1 # Maintainer: Marco Maso <demind@gmail.com>
2 # Contributor: Marco Maso <demind@gmail.com>
4 pkgname=opencore-amr-git
5 pkgver=20110710
6 pkgrel=1
7 pkgdesc="Implementation of Adaptive Multi Rate Narrowband and Wideband speech codec"
8 arch=('i686' 'x86_64')
9 url="http://opencore-amr.sourceforge.net/"
10 license=('GPL')
11 depends=()
12 provides=('amrwb' 'amrnb' 'opencore-amr')
13 conflicts=('opencore-amr')
14 source=()
15 md5sums=()
16 _gitroot="git://opencore-amr.git.sourceforge.net/gitroot/opencore-amr/"
17 _gitname="opencore-amr"
19 build() {
21     if [ -d $_gitname ]; then
22             msg "Updating from git ..."
23             cd $_gitname
24             git pull
25     else
26             msg "Cloning git Tree ..."
27             git clone $_gitroot$_gitname
28     fi
30     cd "$srcdir/$_gitname"
32     msg "Starting build ..."
33     
34     ./configure  --prefix=/usr
36     make || return 1
38     make DESTDIR=$pkgdir install