# Move the polkit dbus configuration files to the proper place:
mkdir -p $PKG/etc
mv $PKG/etc/kde/dbus-1 $PKG/etc/

# Add powerdevil policy file that allows users in the 'power' group
# to check for existence of a discrete gpu:
mkdir -p $PKG/usr/share/polkit-1/rules.d
install -m 0644 -o root \
  $CWD/post-install/powerdevil/10-enable-powerdevil-discrete-gpu.rules \
  $PKG/usr/share/polkit-1/rules.d/10-enable-powerdevil-discrete-gpu.rules
