updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / alsa-plugins-git / PKGBUILD
blob331cad1d646ef4418ef22cbcce5efab5bd6c81aa
1 # Maintainer: John Schoenick <john@pointysoftware.net>
2 # Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
3 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
4 # Contributor: Daniel Ehlers <danielehlers@mindeye.net>
6 pkgname=alsa-plugins-git
7 pkgver=20110826
8 pkgrel=1
9 pkgdesc="Extra alsa plugins - Git version"
10 arch=(i686 x86_64)
11 url="http://www.alsa-project.org"
12 license=(GPL)
13 depends=(alsa-lib-git)
14 makedepends=(libpulse jack)
15 optdepends=('libpulse: PulseAudio plugin'
16             'jack: Jack plugin'
17             'ffmpeg: libavcodec resampling plugin'
18             'libsamplerate: libsamplerate resampling plugin'
19             'speex: libspeexdsp resampling plugin')
20 options=('!libtool')
22 provides=('alsa-plugins=1.0.24')
23 conflicts=('alsa-plugins')
25 _gitroot=git://git.alsa-project.org/alsa-plugins.git
26 _gitname=alsa-plugins
28 build() {
29   cd "$srcdir"
30   msg "Connecting to GIT server...."
32   if [ -d $_gitname ] ; then
33     ( cd $_gitname && git pull origin )
34     msg "The local files are updated."
35   else
36     git clone $_gitroot $_gitname
37   fi
38   
39   rm -rf "${_gitname}_build"
40   cp -r "${_gitname}"{,_build}
41   cd "${_gitname}_build"
42   
43   autoreconf -v --force --install
44   
45   ./configure --prefix=/usr \
46   --disable-avcodec # Does not compile correctly in current -git, temporarily disabled
47   make
50 package() {
51   cd "$srcdir/${_gitname}_build"
52   make DESTDIR="$pkgdir" install
54   mkdir -p "$pkgdir/usr/share/doc/$pkgname"
55   install -m644 doc/README* doc/*.txt "$pkgdir/usr/share/doc/$pkgname/"