Date: Sunday, December 5, 2021 @ 02:57:51 Author: svenstaro Revision: 1065115
archrelease: copy trunk to community-staging-any Added: python-tensorflow-serving-api/repos/community-staging-any/ python-tensorflow-serving-api/repos/community-staging-any/PKGBUILD (from rev 1065114, python-tensorflow-serving-api/trunk/PKGBUILD) ----------+ PKGBUILD | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) Copied: python-tensorflow-serving-api/repos/community-staging-any/PKGBUILD (from rev 1065114, python-tensorflow-serving-api/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2021-12-05 02:57:51 UTC (rev 1065115) @@ -0,0 +1,27 @@ +# Maintainer: Sven-Hendrik Haase <svenst...@archlinux.org> +# Contributor: getzze <getzze at gmail dot com> +pkgname=python-tensorflow-serving-api +_name=tensorflow_serving_api +pkgver=2.7.0 +pkgrel=1 +pkgdesc="Serving system for machine learning models, designed for production environments" +arch=(any) +url="https://www.tensorflow.org/serving/" +license=('Apache') +depends=('python' 'python-grpcio' 'python-tensorflow' 'python-protobuf') +makedepends=('bazel' 'git' 'python-wheel' 'python-pip') +source=("$pkgname-$pkgver.tar.gz::https://github.com/tensorflow/serving/archive/${pkgver}.tar.gz") +sha256sums=('22b29317016413600e3da28cc645e827d5c216e9ccc212ae218efe365a0453ba') + +build() { + cd serving-* + bazel build -c opt tensorflow_serving/tools/pip_package:build_pip_package + sed -i "s|bazel-genfiles/|bazel-out/k8-opt/bin/|g" tensorflow_serving/tools/pip_package/build_pip_package.sh + bazel-bin/tensorflow_serving/tools/pip_package/build_pip_package /tmp/pip +} + +package() { + cd serving-* + pip install --ignore-installed --upgrade --root "${pkgdir}"/ /tmp/pip/tensorflow_serving*.whl --no-dependencies + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE +}