updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / aubio-git / PKGBUILD
blob5db8e0e5688078449f7ae9225c505070c3d993ed
1 # Maintainer: CHEN Xing cxcxcxcx [funnychar] gmail com
3 pkgname=aubio-git
4 pkgver=20120103
5 pkgrel=1
6 pkgdesc="A library for audio labelling"
7 conflicts=('aubio')
8 provides=('aubio')
9 arch=('i686' 'x86_64')
10 url="http://aubio.org/"
11 license=('GPL')
12 depends=('libsamplerate' 'fftw' 'jack')
13 options=('!libtool')
15 _gitroot="git://git.aubio.org/git/aubio/"
16 _gitname="aubio"
18 build() {
19   cd "${srcdir}/"
21   msg "Connecting to GIT server...."
23   if [ -d ${_gitname}/.git ] ; then
24     cd ${_gitname}
26     # Change remote url to anongit
27     if [ -z $( git branch -v | grep anongit ) ] ; then
28         git remote set-url origin ${_gitroot}
29     fi
30     
31     git pull origin
32     msg "The local files are updated."
33   else
34     git clone ${_gitroot} ${_gitname}
35   fi
37         msg "GIT checkout done or server timeout"
38         msg "Starting make..."
39         cd "${srcdir}/${_gitname}"
40         ./bootstrap
41   ./configure --prefix=/usr --with-gnu-ld PYTHON=/usr/bin/python2 #  LDFLAGS=-lm
42   make
45 package() {
46   cd "${srcdir}/${_gitname}"
47   make DESTDIR="${pkgdir}" install