How to compile Powerdevil to include brightness controls on KDE

I have a fresh install of F36 and want to enable in-built brightness controls for my desktop monitors. I have verified that Ddcutil works and can control all available features.
I found out online that recompiling powerdevil with a flag turned on will enable the required feature, but I have no idea how to do so.

Update: I have upgraded to F37, and KDE 5.27, so a solution to solve this in the last LTE release of KDE will be much appreciated.

I could compile powerdevil as described in this post https://www.reddit.com/r/kde/comments/xsxqb0/comment/iqn2ewx/?utm_source=reddit&utm_medium=web2x&context=3 , but i have no idea how to go on.
An other method i have found to get ddcci integrated into plasma is the ddcci-driver-linux ddcci-driver-linux / ddcci-driver-linux · GitLab and i was able to compile it https://www.reddit.com/r/kde/comments/rf10wp/comment/in8oae2/?utm_source=reddit&utm_medium=web2x&context=3 , but again i have no idea how to go on from there.

The ddcci-linux-driver is the way to go. Just compile it as described in their git. Then I added a systemd service: /etc/systemd/system/display.service

[Unit]
Description=modprobe ddcci
After=multi-user.target

[Service]
User=root
Group=root
ExecStart=modprobe ddcci
Type=simple
Restart=never

[Install]
WantedBy=multi-user.target

sudo systemctl daemon-reload
sudo systemctl enable display
sudo reboot now

and done