updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / speex-svn / PKGBUILD
blob5e2feb2dc97a545cce63406d8e408de29530768f
1 # Maintainer: Philipp Gildein <rmbl@openspeak-project.org>
3 pkgname=speex-svn
4 pkgver=14893
5 pkgrel=1
6 pkgdesc="A free codec for free speech"
7 arch=('i686')
8 license=('BSD')
9 provides=('speex')
10 conflicts=('speex')
11 depends=('libogg')
12 makedepends=('subversion' 'autoconf' 'automake')
13 url="http://www.speex.org/"
14 source=()
15 md5sums=()
17 _svntrunk=http://svn.xiph.org/trunk
18 _svnmod=speex
20 build() {
21    cd $startdir/src/
23    if [ -d $_svnmod/.svn ]; then
24            echo "Directory is already existing - Updating"
25            (cd $_svnmod && svn update)
26    else
27            echo "Checking out from SVN"
28            svn co $_svntrunk/$_svnmod --config-dir ./ -r $pkgver $_svnmod
29    fi
31    cd $_svnmod
32    ./autogen.sh
33    ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
34    make || return 1
35    make DESTDIR=$startdir/pkg install
36    #to fix kde detection
37    cp $startdir/pkg/usr/include/speex/* $startdir/pkg/usr/include/
38    #libtoolslay
39    find $startdir/pkg -name '*.la' -exec rm {} \;