updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / lib32-alsa-plugins-git / PKGBUILD
blobb76266fc47b506e679c8f9598b5bb6c983c15027
1 # Maintainer: John Schoenick <john@pointysoftware.net>
2 # Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
4 pkgname=lib32-alsa-plugins-git
5 pkgver=20110920
6 pkgrel=1
7 pkgdesc="Extra alsa plugins (32-bit) - Git version"
8 arch=(x86_64)
9 url="http://www.alsa-project.org"
10 license=(GPL)
11 depends=(lib32-alsa-lib-git alsa-plugins)
12 makedepends=(lib32-{libpulse,jack,speex,libsamplerate} gcc-multilib)
13 optdepends=('lib32-libpulse: PulseAudio plugin'
14             'lib32-jack: Jack plugin'
15             'lib32-libsamplerate: libsamplerate resampling plugin'
16             'lib32-speex: libspeexdsp resampling plugin')
17 options=('!libtool')
18 source=()
19 provides=("lib32-alsa-plugins=1.0.24")
20 conflicts=('lib32-alsa-plugins')
22 _gitroot=git://git.alsa-project.org/alsa-plugins.git
23 _gitname=alsa-plugins
25 build() {
26   cd "$srcdir"
27   if [ -d $_gitname ] ; then
28       ( cd $_gitname && git pull ) 
29   else
30     git clone $_gitroot
31   fi
32   
33   rm -rf "${_gitname}_build"
34   cp -r "${_gitname}"{,_build}
35   cd "${_gitname}_build"
36   
37   autoreconf -v --force --install
39   export CC="gcc -m32"
40   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
42   ./configure --prefix=/usr --libdir=/usr/lib32 --disable-avcodec
43   make
46 package() {
47   cd "$srcdir/${_gitname}_build"
48   make DESTDIR="$pkgdir" install
50   rm -r "$pkgdir/usr/share/alsa/alsa.conf.d/"