summaryrefslogtreecommitdiff
path: root/libre/arrayfire/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/arrayfire/PKGBUILD')
-rw-r--r--libre/arrayfire/PKGBUILD40
1 files changed, 17 insertions, 23 deletions
diff --git a/libre/arrayfire/PKGBUILD b/libre/arrayfire/PKGBUILD
index 459cddbaa..2bb779232 100644
--- a/libre/arrayfire/PKGBUILD
+++ b/libre/arrayfire/PKGBUILD
@@ -1,21 +1,21 @@
+# Maintainer: Andreas Grapentin <andreas@grapentin.org>
+# Contributor: André Silva <emulatorman@riseup.net>
# Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com>
-# Maintainer: André Silva <emulatorman@parabola.nu>
+
pkgname=arrayfire
pkgdesc="High performance software library for parallel computing with an easy-to-use API, without nonfree cuda and nvidia-utils support and nonfree SIFT algorithm"
url='http://arrayfire.com'
-pkgver=3.4.2
+pkgver=3.5.0
arch=('i686' 'x86_64' 'armv7h')
pkgrel=1.parabola1
-license=('BSD')
-makedepends=('cmake' 'graphviz' 'doxygen' 'opencl-headers' 'glfw' 'glew' 'boost' 'git' 'python' 'gcc5')
+license=('BSD3')
+makedepends=('cmake' 'graphviz' 'doxygen' 'opencl-headers' 'glfw' 'glew' 'boost' 'git' 'python' 'gcc')
depends=('cblas' 'fftw' 'boost-libs' 'lapacke' 'forge' 'freeimage' 'glfw' 'glew')
optdepends=('libclc: Required for using OpenCL backend')
-mksource=(http://arrayfire.com/arrayfire_source/arrayfire-full-${pkgver}.tar.bz2)
-source=(https://repo.parabola.nu/other/${pkgname}-libre/${pkgname}-libre-full-${pkgver}.tar.bz2
+source=(http://arrayfire.com/arrayfire_source/arrayfire-full-${pkgver}.tar.bz2
remove-nonfree-references.patch)
-mkmd5sums=('0900c4eaa0d0780f78e1ce5218490104')
-md5sums=('e09960a144fd12816b4cd112e8af7cd7'
- '5b6a5dcb4461aa2b7b5369294836fe7c')
+sha256sums=('9d5533b890c97dda5f253aef41530755d351ea7b495b1063319855e1877724f2'
+ '230900b6ccc4886fa0b77bc4447819ecbbd14891ea4ea0b983e5d1f42a24ae5e')
check() {
cd "${srcdir}/arrayfire-full-${pkgver}/build"
@@ -24,7 +24,7 @@ check() {
#make test
}
-mksource() {
+prepare() {
cd "${srcdir}/arrayfire-full-${pkgver}"
# remove nonfree SIFT algorithm that is patented in some countries and have some other limitations on the use
@@ -32,10 +32,6 @@ mksource() {
rm -v src/backend/opencl/kernel/sift_nonfree.cl
rm -v src/backend/opencl/kernel/sift_nonfree.hpp
rm -v src/backend/cpu/kernel/sift_nonfree.hpp
-}
-
-prepare() {
- cd "${srcdir}/arrayfire-full-${pkgver}"
# remove nonfree reference/recommendation stuff
rm -rv CMakeModules/osx_install
@@ -55,16 +51,8 @@ prepare() {
rm -v src/backend/cpu/sift.hpp
rm -v test/sift_nonfree.cpp
patch -Np1 -i "${srcdir}/remove-nonfree-references.patch"
-}
-
-build() {
- cd "${srcdir}/arrayfire-full-${pkgver}"
- rm -rf build
mkdir build && cd build
-
- export CC=gcc-5
- export CXX=g++-5
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_SYSTEM_FORGE=ON \
@@ -77,6 +65,13 @@ build() {
-DBUILD_SIFT=OFF \
-DBUILD_CUDA=OFF
+ make glb-ext
+}
+
+build() {
+ cd "${srcdir}/arrayfire-full-${pkgver}"
+
+ cd build
make
}
@@ -86,6 +81,5 @@ package() {
install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
cd build
-
make DESTDIR="${pkgdir}/" install
}