[arch-commits] Commit in (4 files)

Bruno Pagani archange at archlinux.org
Thu Apr 16 00:45:01 UTC 2020


    Date: Thursday, April 16, 2020 @ 00:45:00
  Author: archange
Revision: 615081

Initial addition of level-zero

Added:
  level-zero/
  level-zero/repos/
  level-zero/trunk/
  level-zero/trunk/PKGBUILD

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Added: level-zero/trunk/PKGBUILD
===================================================================
--- level-zero/trunk/PKGBUILD	                        (rev 0)
+++ level-zero/trunk/PKGBUILD	2020-04-16 00:45:00 UTC (rev 615081)
@@ -0,0 +1,51 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgbase=level-zero
+pkgname=(level-zero-headers level-zero-loader)
+pkgver=0.91.10
+pkgrel=3
+pkgdesc="API for accessing low level interfaces in oneAPI platform devices"
+arch=(x86_64)
+url="https://spec.oneapi.com/versions/latest/elements/l0/source/index.html"
+license=(MIT)
+makedepends=(cmake opencl-headers)
+source=(https://github.com/oneapi-src/level-zero/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz)
+sha256sums=('9193d8cc57cd63f9b0f44bbc51c9d099c6e899781edb33f9869a850865c64d3d')
+
+prepare() {
+    printf '%s\n' ${pkgver##*.} > ${pkgbase}-${pkgver}/VERSION_PATCH
+}
+
+build() {
+    export CFLAGS+=" ${CPPFLAGS}"
+    export CXXFLAGS+=" ${CPPFLAGS}"
+    cmake -B build -S ${pkgbase}-${pkgver} \
+        -DCMAKE_BUILD_TYPE=None \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -Wno-dev
+    make -C build
+}
+
+package_level-zero-headers() {
+    pkgdesc+=" (headers)"
+    #arch=(any) # Not supported for now, maybe later
+    
+    make -C build DESTDIR="${pkgdir}" install
+    install -Dm644 ${pkgbase}-${pkgver}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+    
+    # remove loader files
+    [ -d 'loader' ] && rm -rf loader
+    mkdir -p loader
+    mv "${pkgdir}"/usr/lib loader
+}
+
+package_level-zero-loader() {
+    pkgdesc+=" (loader)"
+    depends=(gcc-libs)
+    optdepends=('level-zero-driver: for packaged Level Zero driver')
+    
+    mv loader "${pkgdir}"/usr
+    install -Dm644 ${pkgbase}-${pkgver}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}
+



More information about the arch-commits mailing list