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

Konstantin Gizdov kgizdov at archlinux.org
Sat Aug 17 15:20:04 UTC 2019


    Date: Saturday, August 17, 2019 @ 15:20:04
  Author: kgizdov
Revision: 499992

install lib files and symlinks

Modified:
  tensorflow/trunk/PKGBUILD

----------+
 PKGBUILD |   17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-17 14:34:15 UTC (rev 499991)
+++ PKGBUILD	2019-08-17 15:20:04 UTC (rev 499992)
@@ -7,7 +7,7 @@
 pkgname=(tensorflow tensorflow-opt tensorflow-cuda tensorflow-opt-cuda python-tensorflow python-tensorflow-opt python-tensorflow-cuda python-tensorflow-opt-cuda)
 pkgver=1.14.0
 _pkgver=1.14.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Library for computation using data flow graphs for scalable machine learning"
 url="https://www.tensorflow.org/"
 license=('APACHE')
@@ -141,9 +141,18 @@
   tensorflow/c/generate-pc.sh --prefix=/usr --version=${pkgver}
   sed -e 's/\/include/\/include\/tensorflow/' -i tensorflow.pc
   install -Dm644 tensorflow.pc "${pkgdir}"/usr/lib/pkgconfig/tensorflow.pc
-  install -Dm755 bazel-bin/tensorflow/libtensorflow.so "${pkgdir}"/usr/lib/libtensorflow.so
-  install -Dm755 bazel-bin/tensorflow/libtensorflow_cc.so "${pkgdir}"/usr/lib/libtensorflow_cc.so
-  install -Dm755 bazel-bin/tensorflow/libtensorflow_framework.so "${pkgdir}"/usr/lib/libtensorflow_framework.so
+  install -Dm755 bazel-bin/tensorflow/libtensorflow.so.1.14.0 "${pkgdir}"/usr/lib/libtensorflow.so.1.14.0
+  install -Dm755 bazel-bin/tensorflow/libtensorflow.so.1.14.0-2.params "${pkgdir}"/usr/lib/libtensorflow.so.1.14.0-2.params
+  ln -s libtensorflow.so.1.14.0 "${pkgdir}"/usr/lib/libtensorflow.so.1
+  ln -s libtensorflow.so.1 "${pkgdir}"/usr/lib/libtensorflow.so
+  install -Dm755 bazel-bin/tensorflow/libtensorflow_cc.so.1.14.0 "${pkgdir}"/usr/lib/libtensorflow_cc.so.1.14.0
+  install -Dm755 bazel-bin/tensorflow/libtensorflow_cc.so.1.14.0-2.params "${pkgdir}"/usr/lib/libtensorflow_cc.so.1.14.0-2.params
+  ln -s libtensorflow_cc.so.1.14.0 "${pkgdir}"/usr/lib/libtensorflow_cc.so.1
+  ln -s libtensorflow_cc.so.1 "${pkgdir}"/usr/lib/libtensorflow_cc.so
+  install -Dm755 bazel-bin/tensorflow/libtensorflow_framework.so.1.14.0 "${pkgdir}"/usr/lib/libtensorflow_framework.so.1.14.0
+  install -Dm755 bazel-bin/tensorflow/libtensorflow_framework.so.1.14.0-2.params "${pkgdir}"/usr/lib/libtensorflow_framework.so.1.14.0-2.params
+  ln -s libtensorflow_framework.so.1.14.0 "${pkgdir}"/usr/lib/libtensorflow_framework.so.1
+  ln -s libtensorflow_framework.so.1 "${pkgdir}"/usr/lib/libtensorflow_framework.so
   install -Dm644 tensorflow/c/c_api.h "${pkgdir}"/usr/include/tensorflow/tensorflow/c/c_api.h
   install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
 }


More information about the arch-commits mailing list