blob: e493d6c635b0f85ceec9b34125d3fbab36f4094d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Maintainer: Ben Alex <ben.alex@acegi.com.au>
pkgname=python-pycoral
pkgver=2.0.0
pkgrel=3
pkgdesc='Google Coral Python API'
arch=('any')
url='https://github.com/google-coral/pycoral'
license=('Apache')
depends=('python' 'python-pillow' 'python-tflite-runtime' 'libedgetpu-std')
makedepends=('python' 'python-pip')
# Generated by pipman (aside from addition of --extra-index-url)
build() {
pip install --no-deps --target="pycoral" https://github.com/hjonnala/snippets/raw/main/wheels/python3.10/pycoral-2.0.0-cp310-cp310-linux_x86_64.whl
}
package() {
sitepackages=$(python -c "import site; print(site.getsitepackages()[0])")
mkdir -p $pkgdir/"$sitepackages"
cp -r $srcdir/pycoral/* $pkgdir/"$sitepackages"
}
|