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

Bruno Pagani archange at archlinux.org
Sat Mar 25 22:28:11 UTC 2017


    Date: Saturday, March 25, 2017 @ 22:28:10
  Author: archange
Revision: 218987

archrelease: copy trunk to community-x86_64

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

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

Copied: beignet/repos/community-x86_64/PKGBUILD (from rev 218986, beignet/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2017-03-25 22:28:10 UTC (rev 218987)
@@ -0,0 +1,43 @@
+# 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.1
+pkgrel=1
+pkgdesc="An open source OpenCL implementation for Intel IvyBridge+ iGPUs"
+arch=('x86_64')
+url="https://01.org/${pkgname}"
+license=('LGPL')
+depends=('glu' 'llvm' 'mesa' 'ocl-icd' 'opencl-headers')
+makedepends=('clang' 'cmake' 'python')
+provides=('opencl-intel')
+conflicts=('opencl-intel')
+source=("https://01.org/sites/default/files/${pkgname}-${pkgver}-source.tar.gz")
+sha256sums=('399b7bc64d674b3092683263f7c085c5592686b9d837817e77857248e5cb561f')
+
+prepare() {
+    cd ${pkgname^}-${pkgver}-Source
+    mkdir -p build
+}
+
+build() {
+    cd ${pkgname^}-${pkgver}-Source/build
+
+    cmake .. \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+        -DCMAKE_BUILD_TYPE=RELEASE
+    make
+}
+
+package() {
+    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_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