blob: 18c6263caf4e4d5fd1ca4cf82c64b9b64ab42443 (
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
|
#!/bin/bash
# Maintainer: PumpkinCheshire <me at pumpkincheshire dot com>
pkgname=python-google-cloud-speech
_name=google-cloud-speech
pkgver=2.12.0
pkgrel=1
pkgdesc='A google cloud speech api for python to convert audio to text.'
url='https://github.com/googleapis/python-speech'
arch=('any')
license=('Apache')
depends=(
'python-libcst'
'python-proto-plus'
'python-google-api-core'
# 'python-google-cloud-core'
'python-packaging'
)
makedepends=(
'python'
'python-setuptools'
)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
b2sums=('38a8372a4a8531c3c5f34fc5073e85b744dec5062459359a6a1f367f359b6472168a204510af4c41d35afbe3aa38aafc57c0d06428520d0997951f5f9fc881ad')
build() {
cd "$_name-$pkgver" || exit
export PYTHONHASHSEED=0
python setup.py build
}
package() {
cd "$_name-$pkgver" || exit
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|