summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Shapovalov2016-07-01 04:00:56 +0300
committerIvan Shapovalov2016-07-01 04:00:56 +0300
commiteb8f34aed17b8d1a771ef7a7e26b9bc24524780a (patch)
tree59ca97fbdbfcd573e3f0576f3a9817ab043b6cde
parent9472f4719c40ca2de191d037ecfb9d6fe8dbef16 (diff)
downloadaur-eb8f34aed17b8d1a771ef7a7e26b9bc24524780a.tar.gz
Use as skeleton for related intel-opencl package with GPU drivers.
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD45
2 files changed, 32 insertions, 35 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4541a281ca3..0a4979798b8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,18 @@
# Generated by mksrcinfo v8
-# Fri May 6 01:41:49 UTC 2016
-pkgbase = intel-opencl-runtime
- pkgdesc = OpenCL runtime for Intel Core and Xeon processors
- pkgver = 16.1
- pkgrel = 2
- epoch = 1
- url = https://software.intel.com/en-us/articles/opencl-drivers
+# Fri Jul 1 01:00:36 UTC 2016
+pkgbase = intel-opencl
+ pkgdesc = OpenCL(TM) 1.2 Driver for Intel(R) HD, Iris(TM), and Iris(TM) Pro Graphics for Linux
+ pkgver = 1.0.47971
+ pkgrel = 1
+ url = https://software.intel.com/en-us/articles/opencl-drivers#latest_linux_driver
arch = x86_64
license = custom:intel
- depends = numactl
- depends = intel-tbb
depends = zlib
+ depends = libdrm
optdepends = intel-opencl-sdk: Intel SDK for OpenCL Applications
provides = opencl
- source = http://registrationcenter-download.intel.com/akdlm/irc_nas/9019/opencl_runtime_16.1_x64_rh_5.2.0.10002.tgz
- sha256sums = b39bb90f35640cd8d3fd6fc173cf24d969b81da4554a32484c9b2520a8c010c6
+ source = https://software.intel.com/sites/default/files/managed/ee/1f/intel-opencl-1.2-1.0-47971.tar.gz
+ sha256sums = 4c4ebf32d591727f4f0fe02e3b0989e70988cff24ae195eb626d38f2c5ad296f
-pkgname = intel-opencl-runtime
+pkgname = intel-opencl
diff --git a/PKGBUILD b/PKGBUILD
index cbd0eb7491a..18ec504dac1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,38 +1,37 @@
-# Maintainer: ava1ar <mail@ava1ar.me>
+# Maintainer: Ivan Shapovalov <intelfx@intelfx.name>
+# Contributor: ava1ar <mail@ava1ar.me>
# Contributor: Duong Pham <dthpham@gmail.com>
# Contributor: Eric Quackenbush <mail@ericquackenbush.com>
# Contributor: Wei-Ning Huang <aitjcize@gmail.com>
-pkgname=intel-opencl-runtime
-epoch=1
-pkgver=16.1
-_package=opencl_runtime_${pkgver}_x64_rh_5.2.0.10002
-pkgrel=2
-pkgdesc="OpenCL runtime for Intel Core and Xeon processors"
+pkgname=intel-opencl
+_pkgver=1.0-47971
+_package="intel-opencl-1.2-$_pkgver"
+pkgver=${_pkgver//-/.}
+pkgrel=1
+pkgdesc="OpenCL(TM) 1.2 Driver for Intel(R) HD, Iris(TM), and Iris(TM) Pro Graphics for Linux"
arch=('x86_64')
-url="https://software.intel.com/en-us/articles/opencl-drivers"
+url="https://software.intel.com/en-us/articles/opencl-drivers#latest_linux_driver"
license=('custom:intel')
-depends=('numactl' 'intel-tbb' 'zlib')
+depends=('zlib' 'libdrm')
optdepends=('intel-opencl-sdk: Intel SDK for OpenCL Applications')
provides=('opencl')
-source=(http://registrationcenter-download.intel.com/akdlm/irc_nas/9019/${_package}.tgz)
-sha256sums=('b39bb90f35640cd8d3fd6fc173cf24d969b81da4554a32484c9b2520a8c010c6')
+source=(https://software.intel.com/sites/default/files/managed/ee/1f/${_package}.tar.gz)
+sha256sums=('4c4ebf32d591727f4f0fe02e3b0989e70988cff24ae195eb626d38f2c5ad296f')
package() {
- cd "${srcdir}"/${_package}/
+ cd $_package
- # Copy license
- install -Dm644 EULA.txt "${pkgdir}"/usr/share/licenses/intel-opencl-runtime/license
+ tar -xf ${_package}.x86_64.tar.gz -C "$pkgdir"
- # Unpack RPM
- rm rpm/opencl-1.2-base-pset-*.rpm
- for i in rpm/*.rpm; do bsdtar -xf "$i"; done
+ # Copy license
+ mkdir -p "$pkgdir/usr/share/licenses/intel-opencl"
+ mv "$pkgdir/opt/intel/opencl/LICENSE" "$pkgdir/usr/share/licenses/intel-opencl/LICENSE"
- # Register ICD
- mkdir -p "${pkgdir}/etc/OpenCL/vendors"
- echo "/opt/intel/opencl-runtime/lib64/libintelocl.so" > "${pkgdir}/etc/OpenCL/vendors/intel.icd"
+ # Do not conflict with intel-opencl-runtime
+ mv "$pkgdir/etc/OpenCL/vendors/intel"{,-gpu}.icd
- # Install files
- mkdir -p "${pkgdir}/opt/intel/opencl-runtime"
- cp -r opt/intel/opencl-*/* "${pkgdir}/opt/intel/opencl-runtime"
+ # sanitize permissions
+ chown root:root -R "$pkgdir"
+ chmod go-w -R "$pkgdir"
}