Date: Friday, October 12, 2018 @ 16:13:32 Author: svenstaro Revision: 393240
upgpkg: python-tensorflow-serving-api 1.11.0-1 Modified: python-tensorflow-serving-api/trunk/PKGBUILD ----------+ PKGBUILD | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-10-12 16:09:19 UTC (rev 393239) +++ PKGBUILD 2018-10-12 16:13:32 UTC (rev 393240) @@ -9,11 +9,18 @@ url="https://www.tensorflow.org/serving/" license=('Apache') depends=('python' 'python-grpcio' 'python-tensorflow' 'python-protobuf') -makedepends=('python-pip') -source=("https://files.pythonhosted.org/packages/py2.py3/${_name::1}/$_name/$_name-$pkgver-py2.py3-none-any.whl") -sha256sums=('eda671e9cd9d7a643a04dc1e62673a1664274a973702500696a14fe5300a4245') +makedepends=('bazel' 'python-wheel' 'python-pip') +source=("https://github.com/tensorflow/serving/archive/${pkgver}.tar.gz") +sha256sums=('180535787b7892a4f526a6efffd0d3b752689d35af7ce95f923fc5f013da8560') +build() { + cd serving-${pkgver} + bazel build -c opt tensorflow_serving/tools/pip_package:build_pip_package + bazel-bin/tensorflow_serving/tools/pip_package/build_pip_package /tmp/pip +} + package() { - cd "$srcdir" - PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps *.whl + cd serving-${pkgver} + pip install --ignore-installed --upgrade --root $pkgdir/ /tmp/pip/tensorflow_serving*.whl --no-dependencies + install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE }