[arch-commits] Commit in intel-graphics-compiler/repos (2 files)
Daniel Bermond
dbermond at archlinux.org
Sat Mar 30 21:14:09 UTC 2019
Date: Saturday, March 30, 2019 @ 21:14:08
Author: dbermond
Revision: 446414
archrelease: copy trunk to community-testing-x86_64
Added:
intel-graphics-compiler/repos/community-testing-x86_64/
intel-graphics-compiler/repos/community-testing-x86_64/PKGBUILD
(from rev 446413, intel-graphics-compiler/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: intel-graphics-compiler/repos/community-testing-x86_64/PKGBUILD (from rev 446413, intel-graphics-compiler/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2019-03-30 21:14:08 UTC (rev 446414)
@@ -0,0 +1,44 @@
+# Maintainer: Daniel Bermond < gmail-com: danielbermond >
+
+pkgname=intel-graphics-compiler
+pkgver=19.12.1681
+pkgrel=1
+pkgdesc="Intel Graphics Compiler for OpenCL"
+arch=(x86_64)
+url="https://github.com/intel/intel-graphics-compiler"
+license=(MIT)
+depends=(llvm-libs)
+makedepends=(cmake clang llvm zlib python2 intel-opencl-clang)
+options=('!emptydirs')
+source=("${url}/archive/igc-${pkgver}.tar.gz")
+noextract=("igc-${pkgver}.tar.gz")
+sha256sums=(e044081f2840c3511070492aaac29e6f6c1b89b17918e69bb850df53f326d9eb)
+
+prepare() {
+ mkdir -p build ${pkgname}-${pkgver}
+ bsdtar xf igc-${pkgver}.tar.gz -C ${pkgname}-${pkgver} --strip-components='1'
+}
+
+build() {
+ cd build
+ cmake ../"${pkgname}-${pkgver}" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DIGC_OPTION__OUTPUT_DIR='../igc-install/None' \
+ -DIGC_PREFERRED_LLVM_VERSION='8.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}
+
+ # Fix libcommon_clang being embedded
+ rm "${pkgdir}"/usr/lib/libcommon_clang.so
+}
More information about the arch-commits
mailing list