summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDaniel Bermond2018-09-12 19:30:28 +0000
committerDaniel Bermond2018-09-12 19:30:28 +0000
commitc49146eca720810d95dc9a9f895ca352c4f1086d (patch)
tree474bf8858538f8e6716e59faf96b676802a77db1 /PKGBUILD
parente7f6352031006f834b4441487cb2f7ff3f651e40 (diff)
downloadaur-c49146eca720810d95dc9a9f895ca352c4f1086d.tar.gz
Fix build. Other fixes.
- fix build by adding the missing makedepend lsb-release - add missing perl dependency (required by /opt/intel/mediasdk/samples/samples/build.pl) - add symlink for libcttmetrics.so (required by 'metrics_monitor' sample) - fix libmfx permissions
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD13
1 files changed, 10 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8bc735fb578..48362dc7a42 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,13 @@
pkgname=intel-media-stack-bin
pkgver=2018.Q2.2
-pkgrel=1
+pkgrel=2
pkgdesc='Tools and libraries for developing media solutions on Intel products. Includes MediaSDK, Media Driver, libva and libdrm.'
arch=('x86_64')
url='https://github.com/Intel-Media-SDK/MediaSDK/'
license=('MIT')
-depends=('gcc-libs' 'libpciaccess' 'libdrm' 'libx11' 'libxext' 'libxfixes' 'ocl-icd')
+depends=('gcc-libs' 'libpciaccess' 'libdrm' 'libx11' 'libxext' 'libxfixes' 'ocl-icd' 'perl')
+makedepends=('lsb-release')
provides=('intel-media-sdk' 'libmfx' 'intel-media-driver')
conflicts=('intel-media-sdk' 'intel-media-sdk-git' 'intel-media-server-studio')
backup=('etc/profile.d/intel-mediasdk-devel.sh'
@@ -39,7 +40,7 @@ prepare() {
package() {
cd "${pkgname}-${pkgver}"
- mkdir -p "$pkgdir"/etc/{ld.so.conf.d,profile.d}
+ mkdir -p "$pkgdir"/{etc/{ld.so.conf.d,profile.d},usr/lib}
./install_media.sh
@@ -53,6 +54,12 @@ package() {
cd ..
done
+ # add symlink for libcttmetrics.so (required by 'metrics_monitor' sample)
+ ln -s "../../opt/intel/mediasdk/samples/_bin/x64/libcttmetrics.so" "${pkgdir}/usr/lib"
+
+ # fix libmfx permissions
+ chmod 644 "${pkgdir}/opt/intel/mediasdk/lib/lin_x64/libmfx.a"
+
# do not force the use of 'iHD' libva driver by default (let user choose)
local _info='# uncomment the LIBVA_DRIVER_NAME line to use the Intel Media Driver (iHD) for VAAPI'
sed -i "2i${_info}" "$pkgdir"/etc/profile.d/intel-mediasdk.*sh