summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuong Pham2015-08-15 19:59:29 -0700
committerDuong Pham2015-08-15 19:59:29 -0700
commit9c91eac683c064bac0c49666a8fec7cd47736b5f (patch)
treebb2382bcf0cdacc3684c8ab4aac02e849f73d900
downloadaur-9c91eac683c064bac0c49666a8fec7cd47736b5f.tar.gz
initial
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD29
-rw-r--r--intel-opencl-runtime.install11
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..98f80f6b853
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = intel-opencl-runtime
+ pkgdesc = Intel's implementation of the OpenCL standard optimized for Intel processors
+ pkgver = 2014_R2
+ pkgrel = 3
+ url = http://software.intel.com/en-us/vcsource/tools/opencl
+ install = intel-opencl-runtime.install
+ arch = x86_64
+ license = intel
+ makedepends = rpmextract
+ depends = intel-opencl-sdk
+ provides = opencl
+ source = http://registrationcenter.intel.com/irc_nas/4181/opencl_runtime_14.2_x64_4.5.0.8.tgz
+ sha256sums = 2f89eed6e8e1ebfd7d22ea4a10cfc63cbe8ffb41445d78e98de02f99806d2aac
+
+pkgname = intel-opencl-runtime
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..29a73ef00c6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Duong Pham <dthpham@gmail.com>
+# Contributor: Eric Quackenbush <mail@ericquackenbush.com>
+# Contributor: Wei-Ning Huang <aitjcize@gmail.com>
+pkgname=intel-opencl-runtime
+pkgver=2014_R2
+pkgrel=3
+pkgdesc="Intel's implementation of the OpenCL standard optimized for Intel processors"
+arch=('x86_64')
+url="http://software.intel.com/en-us/vcsource/tools/opencl"
+license=('intel')
+depends=('intel-opencl-sdk')
+makedepends=('rpmextract')
+provides=('opencl')
+install='intel-opencl-runtime.install'
+source=('http://registrationcenter.intel.com/irc_nas/4181/opencl_runtime_14.2_x64_4.5.0.8.tgz')
+sha256sums=('2f89eed6e8e1ebfd7d22ea4a10cfc63cbe8ffb41445d78e98de02f99806d2aac')
+_ipath="/opt/intel/opencl-sdk"
+
+package() {
+ # Unpack RPM
+ cd "${srcdir}"/pset_opencl_runtime_*/
+ rm rpm/opencl-1.2-base-pset-*.rpm
+ for i in rpm/*.rpm; do rpmextract.sh "$i"; done
+
+ # Install files
+ mkdir -p "${pkgdir}/${_ipath}"
+ rm opt/intel/opencl-*/lib64/opencl_.pch
+ cp -r opt/intel/opencl-*/* "${pkgdir}/${_ipath}"
+}
diff --git a/intel-opencl-runtime.install b/intel-opencl-runtime.install
new file mode 100644
index 00000000000..42580d415f4
--- /dev/null
+++ b/intel-opencl-runtime.install
@@ -0,0 +1,11 @@
+post_install() {
+ ldconfig
+}
+
+post_upgrade() {
+ ldconfig
+}
+
+post_remove() {
+ ldconfig
+}