[arch-commits] Commit in beignet/repos/community-staging-x86_64 (PKGBUILD)

Bruno Pagani archange at archlinux.org
Sat Sep 22 12:33:38 UTC 2018


    Date: Saturday, September 22, 2018 @ 12:33:38
  Author: archange
Revision: 384130

archrelease: copy trunk to community-staging-x86_64

Added:
  beignet/repos/community-staging-x86_64/PKGBUILD
    (from rev 384129, beignet/trunk/PKGBUILD)

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

Copied: beignet/repos/community-staging-x86_64/PKGBUILD (from rev 384129, beignet/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-09-22 12:33:38 UTC (rev 384130)
@@ -0,0 +1,40 @@
+# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <archange at archlinux.org>
+# Contributor: Antoine Lubineau <antoine at lubignon.info>
+# Contributor: Leopold Bloom <blinxwang at gmail.com>
+# Contributor: Michal Krenek (a.k.a. Mikos) <m.krenek at gmail.com>
+
+pkgname=beignet
+pkgver=1.3.2+12+gfc5f430c
+pkgrel=1
+pkgdesc="An open source OpenCL implementation for Intel IvyBridge & Haswell iGPUs"
+arch=('x86_64')
+url="https://01.org/${pkgname}"
+license=('LGPL')
+depends=('glu' 'llvm-libs' 'clang' 'mesa' 'opencl-headers')
+makedepends=('git' 'llvm' 'cmake' 'python' 'ocl-icd')
+provides=('opencl-intel' 'opencl-driver')
+conflicts=('opencl-intel')
+_commit=fc5f430cb7b7a8f694d86acbb038bd5b38ec389c  # master as of 2018-08-20
+source=("git+https://anongit.freedesktop.org/git/beignet.git#commit=$_commit")
+sha256sums=('SKIP')
+
+prepare() {
+    mkdir -p build
+}
+
+build() {
+    cd build
+    cmake ../${pkgname} \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+        -DCMAKE_BUILD_TYPE=RELEASE
+    make
+}
+
+package() {
+    cd build
+    make DESTDIR="${pkgdir}" install
+    # Remove headers already provided by 'opencl-headers'
+    cd "${pkgdir}/usr/include/CL"
+    rm cl.h cl_egl.h cl_ext.h cl_gl.h cl_gl_ext.h cl_platform.h opencl.h
+}



More information about the arch-commits mailing list