summaryrefslogtreecommitdiff
path: root/multilib/lib32-speex/PKGBUILD
blob: d6f1ea20dd611cb48c2850fb558dd274e195024e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $Id: PKGBUILD 26746 2010-09-15 23:03:23Z bluewind $
# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>

_pkgbasename=speex
pkgname=lib32-$_pkgbasename
pkgver=1.2rc1
pkgrel=3
pkgdesc="A free codec for free speech (32-bit)"
arch=(x86_64)
license=('BSD')
depends=('lib32-libogg' $_pkgbasename)
makedepends=(gcc-multilib)
options=('!libtool')
source=(http://downloads.us.xiph.org/releases/$_pkgbasename/$_pkgbasename-$pkgver.tar.gz)
md5sums=('c4438b22c08e5811ff10e2b06ee9b9ae')
url="http://www.speex.org/"

build() {
  cd $srcdir/speex-$pkgver

  export CC="gcc -m32"
  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"

  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
    --libdir=/usr/lib32
  make
}

package() {
  cd $srcdir/speex-$pkgver
  make DESTDIR=$pkgdir install
  rm -rf "${pkgdir}"/usr/{include,share,bin}
}