summaryrefslogtreecommitdiff
path: root/multilib/lib32-alsa-lib/PKGBUILD
blob: 35ed7c985b8c68f598c69c0e4bd34e1f4dd5d5a1 (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
# $Id: PKGBUILD 75960 2012-09-07 10:05:13Z lcarlier $
# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>

_pkgbasename=alsa-lib
pkgname=lib32-${_pkgbasename}
pkgver=1.0.26
pkgrel=1
pkgdesc="An alternative implementation of Linux sound support (32 bit)"
arch=('x86_64')
url="http://www.alsa-project.org"
depends=('lib32-glibc' $_pkgbasename)
makedepends=('gcc-multilib')
license=('GPL')
options=(!libtool)
source=(ftp://ftp.alsa-project.org/pub/lib/${_pkgbasename}-$pkgver.tar.bz2)
md5sums=('2dfa35d28471d721e592b616beedf965')

build() {
  cd $srcdir/${_pkgbasename}-$pkgver
  export CC='gcc -m32'
  export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
  ./configure --prefix=/usr --libdir=/usr/lib32 --disable-python
  make
}

package() {
  cd $srcdir/${_pkgbasename}-$pkgver
  make DESTDIR=$pkgdir install

  # Clean up lib32 package
  rm -rf "${pkgdir}"/usr/{bin,include,share}
}