[arch-commits] Commit in intel-graphics-compiler/repos (2 files)

Daniel Bermond dbermond at archlinux.org
Fri Oct 4 17:40:15 UTC 2019


    Date: Friday, October 4, 2019 @ 17:40:14
  Author: dbermond
Revision: 512846

archrelease: copy trunk to community-staging-x86_64

Added:
  intel-graphics-compiler/repos/community-staging-x86_64/
  intel-graphics-compiler/repos/community-staging-x86_64/PKGBUILD
    (from rev 512845, intel-graphics-compiler/trunk/PKGBUILD)

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

Copied: intel-graphics-compiler/repos/community-staging-x86_64/PKGBUILD (from rev 512845, intel-graphics-compiler/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-10-04 17:40:14 UTC (rev 512846)
@@ -0,0 +1,50 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=intel-graphics-compiler
+epoch=1
+pkgver=1.0.2652
+pkgrel=1
+pkgdesc="Intel Graphics Compiler for OpenCL"
+arch=(x86_64)
+url="https://github.com/intel/intel-graphics-compiler"
+license=(MIT)
+depends=(llvm-libs intel-opencl-clang)
+makedepends=(cmake clang llvm zlib python)
+options=('!emptydirs')
+source=("${url}/archive/igc-${pkgver}.tar.gz"
+        "igc-${pkgver}-build-fix.patch"::'https://github.com/intel/intel-graphics-compiler/commit/028414b376d12d7d6fbb4939bca2a31a02b6a18f.patch')
+noextract=("igc-${pkgver}.tar.gz")
+sha256sums=('32aa20abe6dbc66dbeffc86aab0db96420b12eb93aec28ad2c98da9f93c1189f'
+            'f3ded012337547f730a162596c701f902ec156c69f1949f7ae0f9cd0d6b2e5a7')
+
+prepare() {
+    mkdir -p build ${pkgname}-${pkgver}
+    bsdtar xf igc-${pkgver}.tar.gz -C ${pkgname}-${pkgver} --strip-components='1'
+    
+    # fix build error
+    # https://github.com/intel/intel-graphics-compiler/issues/112
+    patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/igc-${pkgver}-build-fix.patch"
+}
+
+build() {
+    cd build
+    cmake ../"${pkgname}-${pkgver}" \
+        -DCMAKE_BUILD_TYPE=Release \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_INSTALL_LIBDIR=lib \
+        -DIGC_OPTION__ARCHITECTURE_TARGET='Linux64' \
+        -DIGC_PREFERRED_LLVM_VERSION='9.0.0' \
+        -Wno-dev
+    make
+    
+    # License
+    sed -n '2,20p' IGC/AdaptorOCL/igc.opencl.h > LICENSE # create file
+    sed -i '1,22s/^.\{,3\}//' LICENSE # erase C comments
+}
+
+package() {
+    cd build
+    make DESTDIR="${pkgdir}" install
+    install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}



More information about the arch-commits mailing list