because arch wiki being arch wiki, it RTFMed the reader with no futher explanation on how to actually rebuild this package.
prequesites
install a few packages before we start rebuilding. this are the required dependencies as per the PKGBUILD of connman package. devtools is required as well since it has the tools for rebuilding the package.
sudo pacman -S bluez \
iwd \
openconnect \
openvpn \
ppp \
wpa_supplicant \
devtools
rebuilding the package
first, we need to get the source files of connman package
pkgctl repo clone
protocol=https connman
--with-dns-backend=systemd-resolved
option.
cd connman
vim PKGBUILD
--with-dns-backend=systemd-resolved
makepkg
ps. if the makepkg fails due to pgp key not being verified, you can pass --skippgpcheck flag to the makepkg command.
thats it. :)