[arch-commits] Commit in (4 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Fri Oct 2 11:29:08 UTC 2015


    Date: Friday, October 2, 2015 @ 13:29:08
  Author: svenstaro
Revision: 142756

Adding arrayfire

Added:
  arrayfire/
  arrayfire/repos/
  arrayfire/trunk/
  arrayfire/trunk/PKGBUILD

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

Added: arrayfire/trunk/PKGBUILD
===================================================================
--- arrayfire/trunk/PKGBUILD	                        (rev 0)
+++ arrayfire/trunk/PKGBUILD	2015-10-02 11:29:08 UTC (rev 142756)
@@ -0,0 +1,44 @@
+# 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='http://arrayfire.com'
+pkgver=3.1.2
+arch=('i686' 'x86_64')
+pkgrel=1
+license=('BSD')
+makedepends=('cmake' 'freeimage' 'graphviz' 'doxygen' 'cuda' 'opencl-headers' 'glfw')
+depends=('cblas' 'fftw' 'boost')
+optdepends=('cuda: Required for using CUDA backend'
+            'libclc: Required for using OpenCL backend'
+            'glfw: Required for running the examples')
+source=(http://arrayfire.com/arrayfire_source/arrayfire-full-${pkgveR}.tar.bz2)
+md5sums=('SKIP')
+
+check() {
+  cd "${srcdir}/build"
+
+  make test
+}
+
+build() {
+  cd "${srcdir}"
+
+  rm -rf build
+  mkdir build && cd build
+
+  cmake .. \
+      -DCMAKE_INSTALL_PREFIX=/usr \
+      -DBUILD_CPU=ON \
+      -DCMAKE_BUILD_TYPE=Release \
+      -DBUILD_EXAMPLES=ON \
+      -DBUILD_TESTS=ON \
+      -DBUILD_DOCS=ON
+
+  make
+}
+
+package() {
+  cd "${srcdir}/build"
+
+  make DESTDIR="${pkgdir}/" install
+}



More information about the arch-commits mailing list