You'll need the following dependencies:
libwingpanel-2.0-dev
meson
valac
Run meson
to configure the build environment and then ninja
to build
meson build --prefix=/usr
cd build
ninja
To install, use ninja install
sudo ninja install
Then run killall wingpanel
to restart wingpanel.