summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 14 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 35a635aaee19..4e6ee2e0e71f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,10 +6,10 @@
pkgname=beignet
pkgver=1.2.1
pkgrel=1
-pkgdesc='A GPGPU System for Intel Ivybridge GPUs'
+pkgdesc="An open source OpenCL implementation for Intel IvyBridge+ iGPUs"
arch=('x86_64')
-url="https://01.org/beignet"
-license=('LGPL2.1')
+url="https://01.org/${pkgname}"
+license=('LGPL')
depends=('glu' 'llvm' 'mesa' 'ocl-icd' 'opencl-headers')
makedepends=('clang' 'cmake' 'python')
provides=('opencl-intel')
@@ -17,9 +17,13 @@ conflicts=('opencl-intel')
source=("https://01.org/sites/default/files/${pkgname}-${pkgver}-source.tar.gz")
sha256sums=('b74eb03534a12b86a896cdbd8209b072c8a38e7af456195793a498428a7ac81f')
+prepare() {
+ mkdir -p "${pkgname^}-${pkgver}-Source/build"
+}
+
build() {
- mkdir -p "${srcdir}/Beignet-${pkgver}-Source/build"
- cd "${srcdir}/Beignet-${pkgver}-Source/build"
+ cd "${pkgname^}-${pkgver}-Source/build"
+
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
@@ -28,8 +32,11 @@ build() {
}
package() {
- cd "${srcdir}/Beignet-${pkgver}-Source/build"
- make DESTDIR="${pkgdir}/" install
+ cd "${pkgname^}-${pkgver}-Source/build"
+
+ make DESTDIR="${pkgdir}" install
+
+ # Remove headers already provided by 'opencl-headers'
cd "${pkgdir}/usr/include/CL"
rm cl.h cl.hpp cl_egl.h cl_ext.h cl_gl.h cl_gl_ext.h cl_platform.h opencl.h
}