WineHQ has nice repositories for most Ubuntu versions.
You should install wine
using the steps listed on the official documentation instead of compiling by source.
Since you want version 3.15, you should pick winehq-staging
, which I use in my xenial
installation without problems.
Basically the steps are:
sudo dpkg --add-architecture i386 # if using a 64bit distribution of Ubuntu
curl -L https://dl.winehq.org/wine-builds/Release.key | sudo apt-key add -
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
sudo apt-get update
sudo apt-get install --install-recommends winehq-staging # staging repo for 3.15 version
In addition, maybe you would want to have also the latest version of winetricks - according to the official documentation:
cd "${HOME}/Downloads"
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks
sudo mv winetricks /usr/local/bin/
Then you can type winetricks
into a terminal to run it, for the further new versions it will guide you how to update.