summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAdriĆ  Arrufat2017-05-21 15:46:13 +0200
committerAdriĆ  Arrufat2017-05-21 15:46:13 +0200
commite199c312043b4073690288bc4d762d5aacf53367 (patch)
tree0db6f95b2f42a67c2d356ffe689af21cafeaa2f9 /PKGBUILD
parent4481bcd68e10dfd581930c85c616b40ecdce3204 (diff)
downloadaur-e199c312043b4073690288bc4d762d5aacf53367.tar.gz
add pkgconfig generation
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD5
1 files changed, 5 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8a01098cc9e..2e5cd6d38ab 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -21,6 +21,9 @@ pkgver() {
}
prepare() {
+ msg2 "Generating pkg-config file"
+ ${srcdir}/tensorflow/tensorflow/c/generate-pc.sh --prefix=/usr --version=${pkgver:0:5}
+
[ -d ${srcdir}/tensoflow-cuda ] && rm -rf ${srcdir}/tensorflflow-cuda
cp -r ${srcdir}/tensorflow ${srcdir}/tensorflow-cuda
# These environment variables influence the behavior of the configure call below.
@@ -73,6 +76,7 @@ package_tensorflow-git() {
install -Dm755 bazel-bin/tensorflow/libtensorflow.so ${pkgdir}/usr/lib/lib${pkgname/-git/}.so
install -Dm644 tensorflow/c/c_api.h ${pkgdir}/usr/include/tensorflow/c_api.h
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname/-git/}/LICENSE
+ install -Dm644 ../tensorflow.pc ${pkgdir} /usr/lib/pkgconfig/tensorflow.pc
}
package_tensorflow-cuda-git() {
@@ -85,6 +89,7 @@ package_tensorflow-cuda-git() {
install -Dm755 bazel-bin/tensorflow/libtensorflow.so ${pkgdir}/usr/lib/lib${pkgname}.so
install -Dm644 tensorflow/c/c_api.h ${pkgdir}/usr/include/${pkgname}/c_api.h
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+ install -Dm644 ../tensorflow.pc ${pkgdir} /usr/lib/pkgconfig/tensorflow.pc
}
package_python-tensorflow-git() {