summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Bermond2018-07-23 01:35:57 +0000
committerDaniel Bermond2018-07-23 01:35:57 +0000
commitbcbd4ecfa8e1fb77413d735643962c51e5dcd972 (patch)
treec1ac3d46afa010dea0984a3f8ce753a4f302b8a4
downloadaur-bcbd4ecfa8e1fb77413d735643962c51e5dcd972.tar.gz
Initial commit
-rw-r--r--.SRCINFO35
-rw-r--r--PKGBUILD74
2 files changed, 109 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fbe1e08e4c6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,35 @@
+pkgbase = intel-graphics-compiler-git
+ pkgdesc = Intel Graphics Compiler for OpenCL (git version)
+ pkgver = r460.ab2a715
+ pkgrel = 1
+ url = https://github.com/intel/intel-graphics-compiler/
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = cmake
+ makedepends = clang
+ makedepends = flex
+ makedepends = bison
+ makedepends = python2
+ depends = gcc-libs
+ depends = ncurses
+ depends = zlib
+ provides = intel-graphics-compiler
+ conflicts = intel-graphics-compiler
+ options = !emptydirs
+ source = igc::git+https://github.com/intel/intel-graphics-compiler.git
+ source = llvm_source::git+https://github.com/llvm-mirror/llvm#branch=release_40
+ source = clang_source::git+https://github.com/llvm-mirror/clang#branch=release_40
+ source = llvm_patches::git+https://github.com/intel/llvm-patches
+ source = common_clang::git+https://github.com/intel/opencl-clang
+ source = opencl_headers::git+https://github.com/KhronosGroup/OpenCL-Headers
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
+ sha256sums = SKIP
+
+pkgname = intel-graphics-compiler-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1fdaa3870f9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,74 @@
+# Maintainer: Daniel Bermond < yahoo-com: danielbermond >
+
+_llvm_branch='release_40'
+
+pkgname=intel-graphics-compiler-git
+pkgver=r460.ab2a715
+pkgrel=1
+pkgdesc='Intel Graphics Compiler for OpenCL (git version)'
+arch=('i686' 'x86_64')
+url='https://github.com/intel/intel-graphics-compiler/'
+license=('MIT')
+depends=('gcc-libs' 'ncurses' 'zlib')
+makedepends=('git' 'cmake' 'clang' 'flex' 'bison' 'python2')
+provides=('intel-graphics-compiler')
+conflicts=('intel-graphics-compiler')
+options=('!emptydirs')
+source=('igc'::'git+https://github.com/intel/intel-graphics-compiler.git'
+ 'llvm_source'::"git+https://github.com/llvm-mirror/llvm#branch=${_llvm_branch}"
+ 'clang_source'::"git+https://github.com/llvm-mirror/clang#branch=${_llvm_branch}"
+ 'llvm_patches'::'git+https://github.com/intel/llvm-patches'
+ 'common_clang'::'git+https://github.com/intel/opencl-clang'
+ 'opencl_headers'::'git+https://github.com/KhronosGroup/OpenCL-Headers')
+sha256sums=('SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP')
+
+pkgver() {
+ cd igc
+
+ # git, no tags available
+ printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ [ "$CARCH" = 'i686' ] && local _arch='Linux32'
+ [ "$CARCH" = 'x86_64' ] && local _arch='Linux64'
+
+ mkdir -p build
+ cd build
+
+ cmake \
+ -DCMAKE_BUILD_TYPE:STRING='Release' \
+ -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
+ -DIGC_OPTION__ARCHITECTURE_TARGET:STRING="$_arch" \
+ -DIGC_OPTION__OUTPUT_DIR:PATH='../igc-install/Release' \
+ -Wno-dev \
+ ../igc/IGC
+
+ make
+
+ make package
+}
+
+package() {
+ cd build/_CPack_Packages/Linux/TXZ
+
+ cd "$(find . -maxdepth 1 -type d -name 'IGC-*')"
+
+ for _dir in igc-*
+ do
+ cd "$_dir"
+ cp -af * "$pkgdir"
+ cd ..
+ done
+
+ # license
+ cd "${srcdir}/build"
+ sed -n '2,20p' igc.opencl.h > LICENSE # create file
+ sed -i '1,22s/^.\{,3\}//' LICENSE # erase C comments
+ install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}