summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDaniel Bermond2018-09-12 20:15:05 +0000
committerDaniel Bermond2018-09-12 20:15:05 +0000
commit731d28349aeadbbf39f9d142d9842c156c8d3f0a (patch)
tree5c5bea690e7ceef319a6ce8270801bc0f64f05f3 /PKGBUILD
parentc49146eca720810d95dc9a9f895ca352c4f1086d (diff)
downloadaur-731d28349aeadbbf39f9d142d9842c156c8d3f0a.tar.gz
Fix pkgdesc. provides: add libva-{,utils}. Add bin folder to PATH.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 22 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 48362dc7a42..864fe86f799 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@
pkgname=intel-media-stack-bin
pkgver=2018.Q2.2
-pkgrel=2
-pkgdesc='Tools and libraries for developing media solutions on Intel products. Includes MediaSDK, Media Driver, libva and libdrm.'
+pkgrel=3
+pkgdesc='Tools and libraries for developing media solutions on Intel products. Includes MediaSDK, Media Driver, libva and libva-utils.'
arch=('x86_64')
url='https://github.com/Intel-Media-SDK/MediaSDK/'
license=('MIT')
depends=('gcc-libs' 'libpciaccess' 'libdrm' 'libx11' 'libxext' 'libxfixes' 'ocl-icd' 'perl')
makedepends=('lsb-release')
-provides=('intel-media-sdk' 'libmfx' 'intel-media-driver')
+provides=('intel-media-sdk' 'libmfx' 'intel-media-driver' 'libva' 'libva-utils')
conflicts=('intel-media-sdk' 'intel-media-sdk-git' 'intel-media-server-studio')
backup=('etc/profile.d/intel-mediasdk-devel.sh'
'etc/profile.d/intel-mediasdk-devel.csh'
@@ -40,6 +40,10 @@ prepare() {
package() {
cd "${pkgname}-${pkgver}"
+ local _command
+ local _file
+ local _header
+
mkdir -p "$pkgdir"/{etc/{ld.so.conf.d,profile.d},usr/lib}
./install_media.sh
@@ -54,6 +58,21 @@ package() {
cd ..
done
+ # add bin folder to PATH
+ for _file in "${pkgdir}/etc/profile.d/"intel-mediasdk.{,c}sh
+ do
+ if printf '%s' "$_file" | grep -q '\.csh$'
+ then
+ _command='setenv'
+ else
+ _command='export'
+ fi
+
+ printf '\n' >> "$_file"
+ printf '%s\n' '# add bin folder to PATH' >> "$_file"
+ printf '%s\n' "${_command} PATH=\${PATH:+\${PATH}:}/opt/intel/mediasdk/bin" >> "$_file"
+ done
+
# add symlink for libcttmetrics.so (required by 'metrics_monitor' sample)
ln -s "../../opt/intel/mediasdk/samples/_bin/x64/libcttmetrics.so" "${pkgdir}/usr/lib"