summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4fcbed8dda54b7f044f7742d5fc9b4aeae45eed6 (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
# Maintainer: Janis Jansons <aur@janhouse.lv>
pkgname=python-pyaudio-git
pkgver=v0.2.11.r2.gf749f21
pkgrel=1
pkgdesc="Python bindings for PortAudio (Fork to fix PY_SSIZE_T_CLEAN error)"
arch=('x86_64')
url="https://git.skeh.site/skeh/pyaudio"
license=('MIT')
depends=('portaudio' 'python')
provides=('python-pyaudio')
conflicts=('python-pyaudio')
makedepends=('git')
source=("python-pyaudio-git::git+https://git.skeh.site/skeh/pyaudio.git")
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd $srcdir/$pkgname
    python setup.py build
}

package() {
    cd $srcdir/$pkgname
    python setup.py install --root="$pkgdir" --optimize=1
}