summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Carr2016-03-14 17:07:30 -0700
committerDonald Carr2016-03-14 17:10:53 -0700
commite2e012ef7eec66dedfcc29402149e69e9de98f45 (patch)
tree02f3753ff22e727ccbdd5ada5448f2a490cd8398
parent88d4fa4d233edc81ad3319c5571333bf14f90629 (diff)
downloadaur-e2e012ef7eec66dedfcc29402149e69e9de98f45.tar.gz
Get our CEC plugin into use when it is installed
Change-Id: Ia2824610416e945396019c8e059d2e92f0451945
-rw-r--r--PKGBUILD7
-rw-r--r--qcec.sh2
2 files changed, 7 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 36b43e14879..c2fa6655147 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@ set -e
_pi_ver=2
pkgname="qcec"
pkgver=0.0.1
-pkgrel=2
+pkgrel=3
provides=("$pkgname")
conflicts=("$pkgname")
pkgdesc="Qt CEC keyboard plugin for the Raspberry Pi"
@@ -36,10 +36,13 @@ package() {
local repo_src=${srcdir}/${pkgname}
local deploy_path=${pkgdir}/opt/qt-sdk-raspberry-pi${_pi_ver}/plugins/generic
local ceclib_deploy_path=${pkgdir}/usr/lib
+ local pkgprofiled="${pkgdir}/etc/profile.d"
- mkdir -p $deploy_path
+ mkdir -p ${deploy_path}
mkdir -p ${ceclib_deploy_path}
+ mkdir -p ${pkgprofiled}
cp ${repo_src}/out/* ${deploy_path}
cp -a ${repo_src}/local/lib/libcec* ${ceclib_deploy_path}
+ cp ${startdir}/qcec.sh ${pkgprofiled} || exit 1
}
diff --git a/qcec.sh b/qcec.sh
new file mode 100644
index 00000000000..ef38f1fa8dc
--- /dev/null
+++ b/qcec.sh
@@ -0,0 +1,2 @@
+QT_QPA_GENERIC_PLUGINS="CECKeyboard,${QT_QPA_GENERIC_PLUGINS}"
+export QT_QPA_GENERIC_PLUGINS