Date: Friday, March 10, 2023 @ 03:30:36
  Author: dbermond
Revision: 1417189

Initial commit of onevpl

Added:
  onevpl/
  onevpl/repos/
  onevpl/trunk/
  onevpl/trunk/PKGBUILD

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

Added: onevpl/trunk/PKGBUILD
===================================================================
--- onevpl/trunk/PKGBUILD                               (rev 0)
+++ onevpl/trunk/PKGBUILD       2023-03-10 03:30:36 UTC (rev 1417189)
@@ -0,0 +1,45 @@
+# Maintainer: Daniel Bermond <[email protected]>
+
+pkgname=onevpl
+pkgver=2023.1.3
+pkgrel=1
+pkgdesc='oneAPI Video Processing Library'
+arch=('x86_64')
+url='https://www.intel.com/content/www/us/en/developer/tools/oneapi/onevpl.html'
+license=('MIT')
+depends=('libdrm' 'libva' 'wayland')
+optdepends=('onevpl-runtime: for runtime implementation')
+makedepends=('cmake' 'libx11' 'wayland-protocols')
+source=("https://github.com/oneapi-src/oneVPL/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz";)
+sha256sums=('f088c508413093cb1290ae1cd1ff4a7d37763c6d606e0116cca66c52a2e5b2eb')
+
+build() {
+    cmake -B build -S "oneVPL-${pkgver}" \
+        -G 'Unix Makefiles' \
+        -DCMAKE_BUILD_TYPE:STRING='None' \
+        -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
+        -DCMAKE_INSTALL_SYSCONFDIR:PATH='/etc' \
+        -DBUILD_EXAMPLES:BOOL='OFF' \
+        -DBUILD_TESTS:BOOL='ON' \
+        -DINSTALL_EXAMPLE_CODE:BOOL='OFF' \
+        -DONEAPI_INSTALL_LICENSEDIR:STRING="share/licenses/${pkgname}" \
+        -Wno-dev
+    cmake --build build
+}
+
+check() {
+    ctest --test-dir build --output-on-failure
+}
+
+package() {
+    DESTDIR="$pkgdir" cmake --install build
+    
+    local _file
+    while read -r -d '' _file
+    do
+        if ! grep -q '^vpl-' <<< "$_file"
+        then
+            mv "${pkgdir}/usr/bin"/{,vpl-}"$_file"
+        fi
+    done < <(find "${pkgdir}/usr/bin" -mindepth 1 -maxdepth 1 -type f -print0 
| sed -z 's|.*/||')
+}

Reply via email to