[arch-commits] Commit in arrayfire/repos/community-x86_64 (PKGBUILD PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Tue May 8 02:23:07 UTC 2018


    Date: Tuesday, May 8, 2018 @ 02:23:07
  Author: svenstaro
Revision: 319499

archrelease: copy trunk to community-x86_64

Added:
  arrayfire/repos/community-x86_64/PKGBUILD
    (from rev 319498, arrayfire/trunk/PKGBUILD)
Deleted:
  arrayfire/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  124 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 62 insertions(+), 62 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-08 02:22:56 UTC (rev 319498)
+++ PKGBUILD	2018-05-08 02:23:07 UTC (rev 319499)
@@ -1,62 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
-pkgname=arrayfire
-pkgdesc="High performance software library for parallel computing with an easy-to-use API"
-url='https://arrayfire.com'
-pkgver=3.5.1
-arch=('x86_64')
-pkgrel=4
-license=('BSD')
-makedepends=('cmake' 'graphviz' 'doxygen' 'opencl-headers' 'glfw' 'glew' 'boost' 'git' 'python' 'ocl-icd' 'gcc6' 'cuda' 'nvidia-utils')
-depends=('cblas' 'fftw' 'boost-libs' 'lapacke' 'forge' 'freeimage' 'glfw' 'glew')
-optdepends=('cuda: Required for using CUDA backend'
-            'nvidia-utils: Required for using CUDA backend'
-            'libclc: Required for using OpenCL backend')
-options=('!buildflags')
-source=("http://arrayfire.com/arrayfire_source/arrayfire-full-${pkgver}.tar.bz2")
-sha512sums=('1b521f93abdef985f54443f42e2b0270787da1194a5cdbb06a91af285672bf66fe0e6dbba2e5616968051052ff0face5b518b27014ccd10925008ecb3e53bf76')
-
-prepare() {
-  cd "${srcdir}/arrayfire-full-${pkgver}"
-
-  # patches here
-  sed -i "/NVCC does not support GCC version 6.0/d" src/backend/cuda/CMakeLists.txt
-}
-
-build() {
-  cd "${srcdir}/arrayfire-full-${pkgver}"
-
-  rm -rf build
-  mkdir build && cd build
-
-  export CC=gcc-6
-  export CXX=g++-6
-  cmake .. \
-      -DCMAKE_INSTALL_PREFIX=/usr \
-      -DUSE_SYSTEM_FORGE=ON \
-      -DCOMPUTES_DETECTED_LIST="30;32;35;37;50;52;53;60;61;62" \
-      -DBUILD_CPU=ON \
-      -DBUILD_OPENCL=ON \
-      -DBUILD_NONFREE=ON \
-      -DCMAKE_BUILD_TYPE=Release \
-      -DBUILD_EXAMPLES=ON \
-      -DBUILD_DOCS=ON
-
-  make
-}
-
-# check() {
-#   cd "${srcdir}/arrayfire-full-${pkgver}/build"
-#
-#   # Some tests fail :(
-#   make test
-# }
-
-package() {
-  cd "${srcdir}/arrayfire-full-${pkgver}"
-
-  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
-
-  cd build
-
-  make DESTDIR="${pkgdir}/" install
-}

Copied: arrayfire/repos/community-x86_64/PKGBUILD (from rev 319498, arrayfire/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-05-08 02:23:07 UTC (rev 319499)
@@ -0,0 +1,62 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+pkgname=arrayfire
+pkgdesc="High performance software library for parallel computing with an easy-to-use API"
+url='https://arrayfire.com'
+pkgver=3.6.0
+arch=('x86_64')
+pkgrel=1
+license=('BSD')
+makedepends=('cmake' 'graphviz' 'doxygen' 'opencl-headers' 'glfw' 'glew' 'boost' 'git' 'python' 'ocl-icd' 'cuda' 'nvidia-utils' 'clang' 'openmp')
+depends=('cblas' 'fftw' 'boost-libs' 'lapacke' 'forge' 'freeimage' 'glfw' 'glew' 'glbinding')
+optdepends=('cuda: Required for using CUDA backend'
+            'nvidia-utils: Required for using CUDA backend'
+            'libclc: Required for using OpenCL backend')
+options=('!buildflags')
+source=("http://arrayfire.com/arrayfire_source/arrayfire-full-${pkgver}.tar.bz2")
+sha512sums=('7d651a29c3ba927a3d6b8d1c461fe21e55bae2a988970c46353a2934855db1c8e150d20763faaccbac2a028b4cb6b19b61bbf3709a1052d8081f34637e686d8b')
+
+prepare() {
+  cd "${srcdir}/arrayfire-full-${pkgver}"
+
+  rm -rf build && mkdir build
+}
+
+build() {
+  cd "${srcdir}/arrayfire-full-${pkgver}"
+
+  cd build
+  export CC=clang
+  export CXX=clang++
+  cmake .. \
+      -DCMAKE_INSTALL_PREFIX=/usr \
+      -DAF_USE_SYSTEM_FORGE=ON \
+      -DAF_WITH_IMAGEIO=ON \
+      -DAF_WITH_GRAPHICS=ON \
+      -DAF_BUILD_CPU=ON \
+      -DAF_BUILD_OPENCL=ON \
+      -DAF_BUILD_NONFREE=ON \
+      -DAF_BUILD_EXAMPLES=ON \
+      -DAF_BUILD_DOCS=ON \
+      -DCUDA_architecture_build_targets="3.0;3.2;3.5;3.7;5.0;5.2;5.3;6.0;6.1;6.2;7.0" \
+      -DCMAKE_BUILD_TYPE=Release \
+      -DCUDA_HOST_COMPILER=/usr/bin/gcc-5
+
+  make
+}
+
+# check() {
+#   cd "${srcdir}/arrayfire-full-${pkgver}/build"
+#
+#   # Some tests fail :(
+#   make test
+# }
+
+package() {
+  cd "${srcdir}/arrayfire-full-${pkgver}"
+
+  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+
+  cd build
+
+  make DESTDIR="${pkgdir}/" install
+}



More information about the arch-commits mailing list