[arch-commits] Commit in level-zero/repos (2 files)
Bruno Pagani
archange at archlinux.org
Thu Apr 16 00:45:41 UTC 2020
Date: Thursday, April 16, 2020 @ 00:45:40
Author: archange
Revision: 615082
archrelease: copy trunk to community-staging-x86_64
Added:
level-zero/repos/community-staging-x86_64/
level-zero/repos/community-staging-x86_64/PKGBUILD
(from rev 615081, level-zero/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: level-zero/repos/community-staging-x86_64/PKGBUILD (from rev 615081, level-zero/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-04-16 00:45:40 UTC (rev 615082)
@@ -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