summaryrefslogtreecommitdiff
path: root/extra/alsa-lib/PKGBUILD
blob: b67790a53824a5f93dad6a28b1ed879e40c234d9 (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
34
35
36
37
38
39
40
41
42
43
44
# $Id: PKGBUILD 184466 2013-05-07 10:49:12Z tpowa $
# Maintainer: judd <jvinet@zeroflux.org>

pkgname=alsa-lib
pkgver=1.0.27
pkgrel=2
pkgdesc="An alternative implementation of Linux sound support"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.alsa-project.org"
depends=('glibc')
optdepends=('python2: for python smixer plugin')
makedepends=('python2')
license=('GPL')
options=(!libtool)
source=(ftp://ftp.alsa-project.org/pub/lib/$pkgname-$pkgver.tar.bz2
        alsa-lib-1.0.27-segfault.patch
        alsa-lib-1.0.27-kernel.patch
        alsa-lib-1.0.27-inline.patch
        alsa-lib-1.0.27-inline2.patch)

prepare() {
  cd "$srcdir/$pkgname-$pkgver"
  # add upstream patches
  patch -Np1 -i "$srcdir/alsa-lib-1.0.27-segfault.patch"
  patch -Np1 -i "$srcdir/alsa-lib-1.0.27-kernel.patch"
  patch -Np1 -i "$srcdir/alsa-lib-1.0.27-inline.patch"
  patch -Np1 -i "$srcdir/alsa-lib-1.0.27-inline2.patch"
}

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr --with-pythonlibs="-lpthread -lm -ldl -lpython2.7" --with-pythonincludes=-I/usr/include/python2.7
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
}
md5sums=('f090c7dbd0fe57d786d82e411eac2d08'
         '755cfcd116c28feac437eb6b5bdc51bb'
         '277e2bc587de25e3294a0f597ae9246e'
         'db14deccb57d8dbcfc6f6d22bed45c1e'
         '92ca1fec0cb99bfc302896cf9393a936')