It is not perfect, but as I was searching for this, I did not find one.
You need to run it with sudo.
Some packages are installed that are not needed for it, but idk anymore which one and if you searching for this you are probably trying to install steamtinkerinstall as well.
It is not important where you execute that script.
#!/bin/bash
temp_dir="yad-dialog-code"
apt -y install autoconf intltool automake meson libsystemd-dev pkg-config ninja-build git libdbus-1-dev libinih-dev build-essential libgtk-3-dev libgtk-3-0
git clone https://github.com/v1cont/yad.git "$temp_dir"
cd "$temp_dir"
autoreconf -ivf && intltoolize
./configure && make && make install
cd ..
rm -R "$temp_dir"
It is not perfect, but as I was searching for this, I did not find one. You need to run it with sudo. Some packages are installed that are not needed for it, but idk anymore which one and if you searching for this you are probably trying to install steamtinkerinstall as well.
It is not important where you execute that script.