[arch-commits] Commit in arrayfire/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Sat Oct 3 08:36:33 UTC 2015
Date: Saturday, October 3, 2015 @ 10:36:33
Author: svenstaro
Revision: 142860
upgpkg: arrayfire 3.1.2-1
Pushing arrayfire
Modified:
arrayfire/trunk/PKGBUILD
----------+
PKGBUILD | 28 ++++++++++++++++++----------
1 file changed, 18 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-10-03 07:46:50 UTC (rev 142859)
+++ PKGBUILD 2015-10-03 08:36:33 UTC (rev 142860)
@@ -6,22 +6,25 @@
arch=('i686' 'x86_64')
pkgrel=1
license=('BSD')
-makedepends=('cmake' 'freeimage' 'graphviz' 'doxygen' 'cuda' 'opencl-headers' 'glfw')
-depends=('cblas' 'fftw' 'boost')
+makedepends=('cmake' 'graphviz' 'doxygen' 'opencl-headers' 'glfw' 'glew' 'boost' 'git')
+makedepends_x86_64=('cuda' 'nvidia-utils')
+depends=('cblas' 'fftw' 'boost-libs' 'lapack' 'forge' 'freeimage')
optdepends=('cuda: Required for using CUDA backend'
+ 'nvidia-utils: 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')
+ 'glfw: Required for running the examples'
+ 'glew: Required for running the examples')
+source=(http://arrayfire.com/arrayfire_source/arrayfire-full-${pkgver}.tar.bz2)
+md5sums=('c60b10a5ad66ca363ab0732fd9438c15')
check() {
- cd "${srcdir}/build"
+ cd "${srcdir}/arrayfire-full-${pkgver}/build"
- make test
+ #make test
}
build() {
- cd "${srcdir}"
+ cd "${srcdir}/arrayfire-full-${pkgver}/"
rm -rf build
mkdir build && cd build
@@ -28,10 +31,11 @@
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DUSE_SYSTEM_FORGE=ON \
+ -DCOMPUTES_DETECTED_LIST="20;30;32;35;50;52;53" \
-DBUILD_CPU=ON \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_EXAMPLES=ON \
- -DBUILD_TESTS=ON \
-DBUILD_DOCS=ON
make
@@ -38,7 +42,11 @@
}
package() {
- cd "${srcdir}/build"
+ 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