the link https://github.com/ubuntu/yaru says at one part from below quote "Installing from source is not recommended for average usage!"
Using Yaru on Ubuntu
The Yaru theme suite is installed with Ubuntu 18.10+ by default! No
further steps are required to use it.
Installing from source is not recommended for average usage! Using a
legacy Yaru/Communitheme version on Ubuntu 18.04 (bionic beaver) via
snap installation
Note that for backward compatibility, we kept the name "communitheme" for bionic beaver.
Only icon and sound updates will be pushed into this version of the theme suite.
These steps only work on Ubuntu 18.04 (bionic beaver)! DO NOT install
the snap on 18.10+ installations!
Follow these steps in order to install and enable communitheme.
Install the communitheme snap on 18.04 by installing communitheme in the Ubuntu Software Application or running snap install communitheme.
Restart your computer.
Click on your user, click on the gear icon and select the "Ubuntu with communitheme snap" session from the pop-up, and login.
Now Ubuntu is using the communitheme including the system, applications, icons, sounds and the cursor.
Installing from Source:
Tried it with live ISO and running install of Ubuntu 18.04.. In both cases.. It is observed that to build it from source, these packages are required.
meson
sassc
pkg-config
libglib2.0-dev
So, Install the required packages with below command.
sudo apt install meson sassc pkg-config libglib2.0-dev
Download the file from this link https://github.com/ubuntu/yaru/archive/master.zip
Extract it.
Now create a script named yaru.sh
with below content in your $HOME
directory.
#!/bin/bash
cd $HOME/Downloads/yaru-master
mkdir xyz $HOME/YaruBuiltFromSource
meson setup --prefix=$HOME/YaruBuiltFromSource xyz
ninja -C xyz
ninja -C xyz install
run the script from your $HOME
directory with the below command
/bin/bash yaru.sh
This script creates the required themes namely ICONS,CURSOR, GTK, SHELL, SOUND etc.. in the $HOME/YaruBuiltFromSource
directory like below.
you can copy them based on your choice (for example for icon theme) to $HOME/.icons
or $HOME/.local/share/icons
or /usr/share/icons
similarly for other themes also
Please note that you need to play tricks with symbolic links for Yaru shell theme..