summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Bermond2020-03-20 00:22:40 +0000
committerDaniel Bermond2020-03-20 00:22:40 +0000
commit0fd5d85b21c29696ab012d770b8f2aedc4035601 (patch)
treee66b41847a9427b8b56942b80705b4220c25684b
downloadaur-0fd5d85b21c29696ab012d770b8f2aedc4035601.tar.gz
Initial commit of level-zero-git
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD58
2 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..43417c6e464
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = level-zero-git
+ pkgdesc = API for accessing low level interfaces in oneAPI platform devices (git version)
+ pkgver = 0.91.r1.gbe749e1
+ pkgrel = 1
+ url = https://spec.oneapi.com/versions/latest/elements/l0/source/index.html
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = cmake
+ makedepends = opencl-headers
+ source = git+https://github.com/oneapi-src/level-zero.git
+ sha256sums = SKIP
+
+pkgname = level-zero-headers-git
+ pkgdesc = oneAPI Level Zero header files (git version)
+ arch = any
+ provides = level-zero-headers
+ conflicts = level-zero-headers
+
+pkgname = level-zero-loader-git
+ pkgdesc = oneAPI Level Zero loader (git version)
+ depends = gcc-libs
+ provides = level-zero-loader
+ conflicts = level-zero-loader
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d1e7676ff0d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,58 @@
+# Maintainer: Daniel Bermond <dbermond@archlinux.org>
+
+pkgbase=level-zero-git
+pkgname=('level-zero-headers-git' 'level-zero-loader-git')
+pkgver=0.91.r1.gbe749e1
+pkgrel=1
+pkgdesc='API for accessing low level interfaces in oneAPI platform devices (git version)'
+arch=('x86_64')
+url='https://spec.oneapi.com/versions/latest/elements/l0/source/index.html'
+license=('MIT')
+makedepends=('git' 'cmake' 'opencl-headers')
+source=('git+https://github.com/oneapi-src/level-zero.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd level-zero
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
+}
+
+build() {
+ export CFLAGS+=" ${CPPFLAGS}"
+ export CXXFLAGS+=" ${CPPFLAGS}"
+ cd level-zero
+ cmake -B build -S . \
+ -DCMAKE_BUILD_TYPE='None' \
+ -DCMAKE_INSTALL_PREFIX='/usr' \
+ -Wno-dev
+ make -C build
+}
+
+package_level-zero-headers-git() {
+ pkgdesc='oneAPI Level Zero header files (git version)'
+ arch=('any')
+ provides=('level-zero-headers')
+ conflicts=('level-zero-headers')
+
+ make -C level-zero/build DESTDIR="$pkgdir" install
+
+ # remove loader files
+ [ -d 'loader' ] && rm -rf loader
+ mkdir -p loader
+ mv "${pkgdir}/usr/lib" loader
+
+ install -D -m644 level-zero/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+package_level-zero-loader-git() {
+ pkgdesc='oneAPI Level Zero loader (git version)'
+ depends=('gcc-libs')
+ #optdepends=('level-zero-gpu-driver: for packaged Level Zero GPU driver') # no package provides this yet
+ provides=('level-zero-loader')
+ conflicts=('level-zero-loader')
+
+ mkdir -p "${pkgdir}/usr"
+ mv loader/lib "${pkgdir}/usr"
+
+ install -D -m644 level-zero/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}