mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
# Contributions from Arch:
|
|
# Contributor: Balló György <ballogyor+arch at gmail dot com>
|
|
|
|
_pkgbase=PyAudio
|
|
pkgbase=python-pyaudio
|
|
pkgname=('python3-pyaudio' 'python2-pyaudio')
|
|
pkgver=0.2.11
|
|
pkgrel=1
|
|
pkgdesc="Python bindings for PortAudio"
|
|
arch=('x86_64')
|
|
url="https://people.csail.mit.edu/hubert/pyaudio/"
|
|
license=('MIT')
|
|
depends=('portaudio' 'python3' 'python2')
|
|
source=("$pkgbase-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/P/$_pkgbase/$_pkgbase-$pkgver.tar.gz")
|
|
sha256sums=('93bfde30e0b64e63a46f2fd77e85c41fd51182a4a3413d9edfaf9ffaa26efb74')
|
|
|
|
prepare() {
|
|
cp -a $_pkgbase-$pkgver{,-python2}
|
|
}
|
|
|
|
build() {
|
|
cd $_pkgbase-$pkgver
|
|
python3 setup.py build
|
|
|
|
cd ../$_pkgbase-$pkgver-python2
|
|
python2 setup.py build
|
|
}
|
|
|
|
package_python3-pyaudio() {
|
|
depends=('portaudio' 'python3')
|
|
|
|
cd $_pkgbase-$pkgver
|
|
python3 setup.py install --root "$pkgdir" --optimize=1
|
|
install -Dm644 README "$pkgdir/usr/share/licenses/$pkgname/README"
|
|
}
|
|
|
|
package_python2-pyaudio() {
|
|
depends=('portaudio' 'python2')
|
|
|
|
cd $_pkgbase-$pkgver-python2
|
|
python2 setup.py install --root "$pkgdir" --optimize=1
|
|
install -Dm644 README "$pkgdir/usr/share/licenses/$pkgname/README"
|
|
}
|