add agent support for kf5

This commit is contained in:
Weng Xuetian 2014-12-01 22:35:43 +00:00
parent 849736080f
commit 8741b2eb13
2 changed files with 14 additions and 2 deletions

View File

@ -6,7 +6,7 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=chakra-common pkgname=chakra-common
arch=('x86_64') arch=('x86_64')
pkgver=${_kdever} pkgver=${_kdever}
pkgrel=1 pkgrel=2
pkgdesc="Common configuration files, scripts and artwork" pkgdesc="Common configuration files, scripts and artwork"
url="http://www.chakraos.org" url="http://www.chakraos.org"
license=('GPL' license=('GPL'
@ -58,6 +58,7 @@ source=('http://www.kde-apps.org/CONTENT/content-files/48411-rootactions_service
'agent-startup.sh' 'agent-startup.sh'
'agent-shutdown.sh' 'agent-shutdown.sh'
'chakra-helper.sh' 'chakra-helper.sh'
'kde4.sh'
'https://gitorious.org/chakra-paste/chakra-paste/archive/05f0a884a4de1460309ee95d678eb034c4c964b5.tar.gz') 'https://gitorious.org/chakra-paste/chakra-paste/archive/05f0a884a4de1460309ee95d678eb034c4c964b5.tar.gz')
sha256sums=('39e41a6acf246af4050d3e253b028f6abb739e19ec03d3c17ebf467b68be3962' sha256sums=('39e41a6acf246af4050d3e253b028f6abb739e19ec03d3c17ebf467b68be3962'
'2bf00472d9b50bc9befcf9cdca92a1a6d31690287de330e6390ca65c17aba02e' '2bf00472d9b50bc9befcf9cdca92a1a6d31690287de330e6390ca65c17aba02e'
@ -84,12 +85,18 @@ sha256sums=('39e41a6acf246af4050d3e253b028f6abb739e19ec03d3c17ebf467b68be3962'
'e4a44b4ed3130d1fa309a6b5c829461ec09ec595c31cd4a8715d79942fe8f0ef' 'e4a44b4ed3130d1fa309a6b5c829461ec09ec595c31cd4a8715d79942fe8f0ef'
'530ecdbe32c8f33991cd6c2ccf29212f28bb4462d1844f5acba335b5984a9347' '530ecdbe32c8f33991cd6c2ccf29212f28bb4462d1844f5acba335b5984a9347'
'9e0c9408c9bc12aeca2fd66a4723b57a6878307ba956df7cca43f8112dd71429' '9e0c9408c9bc12aeca2fd66a4723b57a6878307ba956df7cca43f8112dd71429'
'c9ae289581672b699d118bd44bbd2ea7968b5935a43c2b7bfa28103ee372e69a') '0e419422afb09ccebd3f532cde784e97adfd5ad7816701c17966597f54915bfc'
'b406d31064f7ce7e82a5c428574ab47908ce227a5fbe61171be4ef3f297ebe58')
package() { package() {
# Install scripts for gpg/ssh-agent # Install scripts for gpg/ssh-agent
install -D -m 755 -o root -g root $srcdir/agent-startup.sh $pkgdir/etc/kde/env/agent-startup.sh install -D -m 755 -o root -g root $srcdir/agent-startup.sh $pkgdir/etc/kde/env/agent-startup.sh
install -D -m 755 -o root -g root $srcdir/agent-shutdown.sh $pkgdir/etc/kde/shutdown/agent-shutdown.sh install -D -m 755 -o root -g root $srcdir/agent-shutdown.sh $pkgdir/etc/kde/shutdown/agent-shutdown.sh
# Install scripts for kf5
install -D -m 755 -o root -g root $srcdir/agent-startup.sh $pkgdir/etc/xdg/plasma-workspace/env/agent-startup.sh
install -D -m 755 -o root -g root $srcdir/agent-shutdown.sh $pkgdir/etc/xdg/plasma-workspace/shutdown/agent-shutdown.sh
install -D -m 755 -o root -g root $srcdir/kde4.sh $pkgdir/etc/xdg/plasma-workspace/env/kde4.sh
# Install KDM RC script # Install KDM RC script
#install -D -m755 -o root -g root ${srcdir}/kdm.daemon ${pkgdir}/etc/rc.d/kdm #install -D -m755 -o root -g root ${srcdir}/kdm.daemon ${pkgdir}/etc/rc.d/kdm

5
chakra-common/kde4.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/sh
# set qt plugin path for kde4/qt4, otherwise qt4 plugin will not picked up by qt4/kde4 application.
QT_PLUGIN_PATH=${QT_PLUGIN_PATH+$QT_PLUGIN_PATH:}/usr/lib/kde4/plugins:/usr/lib/qt/plugins