summaryrefslogtreecommitdiff
path: root/extra/aubio/PKGBUILD
blob: c4b0ab9f23a204a4563f0e57aa7e00b20fc51d6f (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
# $Id: PKGBUILD 207712 2014-03-13 18:44:20Z schiv $
# Maintainer: Ray Rashif <schiv@archlinux.org>
# Contributor: Tobias Kieslich tobias [funnychar] archlinux org
# Contributor: see .contrib

pkgname=aubio
pkgver=0.4.1
pkgrel=1
pkgdesc="A tool for extracting annotations from audio signals"
arch=('i686' 'x86_64')
url="http://aubio.org/"
license=('GPL')
depends=('fftw' 'jack' 'ffmpeg')
makedepends=('python2-numpy')
optdepends=('python2-numpy: Python 2.x interface')
source=("http://aubio.org/pub/$pkgname-$pkgver.tar.bz2")
md5sums=('ffe7d24f6bd8e9053aeaba6c0231efb0')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  python2 waf configure --prefix=/usr --enable-fftw3f
  python2 waf build $MAKEFLAGS
  cd python && python2 setup.py build # python interface
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  python2 waf --destdir="$pkgdir" install

  # python interface
  cd python || return 1

  python2 setup.py install --root="$pkgdir" --optimize=1

  # python2 compat
  sed -i 's:bin/env python:bin/env python2:' \
      "$pkgdir/usr/lib/python2.7/site-packages/aubio/__init__.py"
}