I think, this maybe usefull for some users.
Thanks to Prissi and Andarix to explain this for me:1) You need the ST Sourcecode from the Subversion Repo
svn://servers.simutrans.org/simutransor Github
https://github.com/aburch/simutransFrom Subversion you get 3 Directories:
"branches" "patches" "trunk" Github has only 1:
"simutrans"2) Before you can compile the Code you need a bunch of Devel Libraries:Open a Terminal an type in:
sudo apt-get update
sudo apt-get install libsdl2-dev libfreetype6-dev libminiupnpc-dev libbz2-dev libpng-dev zlib1g-dev autoconf
This may take a bit.
3) Go to the "trunk" respectively "simutrans" folder in your Filemanager then.Start a terminal inside (Rightclick => Open a terminal here) and type in:
autoconf && ./configure
You have now a File "config.default"
If you have downloaded the code from the github, it does not get the revision correctly. Instead you can use the following line (if you have a working svn aka subversion client installed).
echo "FLAGS = -DREVISION=$(svn info --show-item revision svn://servers.simutrans.org/simutrans) " >>config.default
With github, you need to run this everytime you download a new revision. If you do not join networkgames, you can ignore this.
4) Now you can compile ST by typing:make
and get a cup of coffee, because this needs a minute or 3 ...
5) The last step, make the shell script "distribute.sh" executable and start it.chmod a+x ./distrubte.sh
./distribute.sh
The Script closes the terminal Window after finishing his work
You find now a *.zip File with the complete simutrans package in the "trunk" folder.
If you need only the binary, look for a file named
"sim" in trunk.
Edit on svn revison info by prissi 13.6.2020.