[arch-commits] Commit in arrayfire/repos (2 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Fri Aug 17 09:03:10 UTC 2018


    Date: Friday, August 17, 2018 @ 09:03:10
  Author: svenstaro
Revision: 372308

archrelease: copy trunk to community-staging-x86_64

Added:
  arrayfire/repos/community-staging-x86_64/
  arrayfire/repos/community-staging-x86_64/PKGBUILD
    (from rev 372307, arrayfire/trunk/PKGBUILD)

----------+
 PKGBUILD |   60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

Copied: arrayfire/repos/community-staging-x86_64/PKGBUILD (from rev 372307, arrayfire/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-08-17 09:03:10 UTC (rev 372308)
@@ -0,0 +1,60 @@
+# 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.1
+arch=('x86_64')
+pkgrel=2
+license=('BSD')
+depends=('cblas' 'fftw' 'boost-libs' 'lapacke' 'forge' 'freeimage' 'glfw' 'glew' 'glbinding')
+makedepends=('cmake' 'graphviz' 'doxygen' 'opencl-headers' 'boost' 'python' 'ocl-icd' 'cuda' 'git')
+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=('44f4e0e5c99764a34854e5da7c893cd956a42dd4a23a5761e63a661e23cbd0bbab7cec3fc182aa1b5255989b19b3713bde8a10aee782bd76424b6c4b025e0f36')
+
+prepare() {
+  cd "${srcdir}/arrayfire-full-${pkgver}"
+
+  rm -rf build && mkdir build
+}
+
+build() {
+  cd "${srcdir}/arrayfire-full-${pkgver}"
+
+  cd build
+  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-7
+
+  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