Date: Friday, March 10, 2023 @ 03:38:12
Author: dbermond
Revision: 1417191
archrelease: copy trunk to community-x86_64
Added:
onevpl/repos/community-x86_64/
onevpl/repos/community-x86_64/PKGBUILD
(from rev 1417190, onevpl/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: onevpl/repos/community-x86_64/PKGBUILD (from rev 1417190,
onevpl/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2023-03-10 03:38:12 UTC (rev 1417191)
@@ -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|.*/||')
+}