summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7c027137aba358e7fb157182626cca08d3365bae (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
41
42
43
44
45
46
47
# Maintainer: Henry Jia <henryjia18@gmail.com>
# Contributor: Butui Hu <hot123tea123@gmail.com>

pkgname=python-onnx-tensorflow
pkgver=1.10.0
pkgrel=1
pkgdesc='Open Neural Network Exchange Tensorflow Backend'
arch=('x86_64')
url='https://onnx.ai'
license=('MIT')
depends=(
  'python-onnx'
  'python-yaml'
  'python-yaml'
  'python-setuptools'
)
makedepends=(
  'git'
  'python-onnx'
  'python-yaml'
  'python-setuptools'
)

optdepends=(
  'mxnet'
  'python-pytorch'
  'python-tensorflow'
)
source=("${pkgname}::git+https://github.com/onnx/onnx-tensorflow.git#tag=v${pkgver}")
sha512sums=('SKIP')

get_pyver() {
  python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))'
}

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

package() {
  cd "${pkgname}"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"

}
# vim:set ts=2 sw=2 et: