[arch-commits] Commit in python-tensorflow-serving-api/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Sat Jan 19 01:19:08 UTC 2019


    Date: Saturday, January 19, 2019 @ 01:19:08
  Author: svenstaro
Revision: 424342

upgpkg: python-tensorflow-serving-api 1.12.0.git1.7bbcc6d-1

Modified:
  python-tensorflow-serving-api/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-01-19 01:17:37 UTC (rev 424341)
+++ PKGBUILD	2019-01-19 01:19:08 UTC (rev 424342)
@@ -2,7 +2,8 @@
 # Contributor: getzze <getzze at gmail dot com>
 pkgname=python-tensorflow-serving-api
 _name=tensorflow_serving_api
-pkgver=1.12.0
+_commit=7bbcc6d
+pkgver=1.12.0.git1.${_commit}
 pkgrel=1
 pkgdesc="Flexible, high-performance serving system for machine learning models, designed for production environments"
 arch=(any)
@@ -10,17 +11,17 @@
 license=('Apache')
 depends=('python' 'python-grpcio' 'python-tensorflow' 'python-protobuf')
 makedepends=('bazel' 'python-wheel' 'python-pip')
-source=("https://github.com/tensorflow/serving/archive/${pkgver}.tar.gz")
-sha256sums=('67f0f7630f8582f8997eae4da3a9a7082b9e4448826d3bbc5012459ca3a01440')
+source=("https://github.com/tensorflow/serving/archive/${_commit}.tar.gz")
+sha256sums=('e64c1367d9d54cc3ff657b0887b09be5c6ba0e28f6ddbaa76ccc5d9934a8a420')
 
 build() {
-  cd serving-${pkgver}
+  cd serving-*
   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 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
+  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
 }



More information about the arch-commits mailing list