blob: ed6bcb7a8203aa302e5844e0824c899c5d8ac00b (
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
|
#!/bin/bash
# Maintainer: PumpkinCheshire <me at pumpkincheshire dot top>
pkgname=python-google-cloud-speech
_name=google-cloud-speech
pkgver=2.6.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-packaging'
)
makedepends=(
'python'
'python-setuptools'
)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
b2sums=('14ee4587f206985956ec6250ab75e81abc42d59ee68fa47ea4c48130b9f0c2bebf72f14c19eff0933afdf1d8d2d2f3c8f2bbac7c5b1f64287f0894dae0b54a23')
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"
}
|