summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Bermond2020-03-27 20:03:30 +0000
committerDaniel Bermond2020-03-27 20:03:30 +0000
commitcb79fe1e6252549e65a927a20028959e34e12970 (patch)
tree732052d2b65ddbd16723373c298b74bd8a8074ff
parent0fd5d85b21c29696ab012d770b8f2aedc4035601 (diff)
downloadaur-cb79fe1e6252549e65a927a20028959e34e12970.tar.gz
Cosmetic changes
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD17
2 files changed, 7 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 43417c6e464..a4454d4aeec 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = level-zero-git
pkgdesc = API for accessing low level interfaces in oneAPI platform devices (git version)
- pkgver = 0.91.r1.gbe749e1
+ pkgver = 0.91.10.r0.gebb363e
pkgrel = 1
url = https://spec.oneapi.com/versions/latest/elements/l0/source/index.html
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index d1e7676ff0d..e7a1da12992 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgbase=level-zero-git
pkgname=('level-zero-headers-git' 'level-zero-loader-git')
-pkgver=0.91.r1.gbe749e1
+pkgver=0.91.10.r0.gebb363e
pkgrel=1
pkgdesc='API for accessing low level interfaces in oneAPI platform devices (git version)'
arch=('x86_64')
@@ -13,15 +13,13 @@ 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//'
+ git -C level-zero 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 . \
+ cmake -B build -S level-zero \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev
@@ -34,14 +32,12 @@ package_level-zero-headers-git() {
provides=('level-zero-headers')
conflicts=('level-zero-headers')
- make -C level-zero/build DESTDIR="$pkgdir" install
+ make -C build DESTDIR="$pkgdir" install
+ install -D -m644 level-zero/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
# 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() {
@@ -52,7 +48,6 @@ package_level-zero-loader-git() {
conflicts=('level-zero-loader')
mkdir -p "${pkgdir}/usr"
- mv loader/lib "${pkgdir}/usr"
-
+ mv loader "${pkgdir}/usr/lib"
install -D -m644 level-zero/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}