updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / alsa-lib-git / PKGBUILD
blob2381d3508b6f5dba05e4fa42bd8051bb56c00a55
1 # Maintainer:  John "Nephyrin" Schoenick <john@pointysoftware.net>
2 # Contributor: Luca Bennati <lucak3 at gmail dot com>
4 pkgname=alsa-lib-git
5 pkgver=20110923
6 pkgrel=1
7 pkgdesc="An alternative implementation of Linux sound support - GIT version"
8 arch=('i686' 'x86_64')
9 url="http://www.alsa-project.org"
10 depends=('glibc')
11 optdepends=('python2')
12 makedepends=('python2' 'git')
13 license=('GPL')
14 options=(!libtool)
15 conflicts=('alsa-lib')
16 provides=('alsa-lib=1.0.24.1')
18 _gitroot="git://git.alsa-project.org/alsa-lib.git"
19 _gitname="alsa-lib"
21 build() {
22   cd "$srcdir"
23   msg "Connecting to GIT server...."
25   if [ -d $_gitname ] ; then
26     ( cd $_gitname && git pull origin )
27     msg "The local files are updated."
28   else
29     git clone $_gitroot $_gitname
30   fi
32   rm -rf "${_gitname}_build"
33   cp -r "${_gitname}"{,_build}
34   cd "${_gitname}_build"
36   autoreconf -v --force --install
37   
38   ./configure --prefix=/usr --with-pythonlibs="-lpthread -lm -ldl -lpython2.7" --with-pythonincludes=-I/usr/include/python2.7
39   
40   make
43 package()
45     cd "${srcdir}/${_gitname}_build"
46     make DESTDIR=$pkgdir install