# Re-run the 'setcap' command which fails during package buikding
# (because of a mising DESTDIR?):
if [ -f usr/lib64/kf5/start_kdeinit ]; then
  /sbin/setcap CAP_SYS_RESOURCE=+ep usr/lib64/kf5/start_kdeinit
elif [ -f usr/lib/kf5/start_kdeinit ]; then
  /sbin/setcap CAP_SYS_RESOURCE=+ep usr/lib/kf5/start_kdeinit
fi
