<div dir="ltr">I'm building the application on debian. flatpak-builder 0.9.x is not working correctly on this distribution, as expected from unstable branch package.<br>As I found out my problem was in a makefile itself. I had to add semi-colon simbol after command to save previous command state.<br>Thank you for your help.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-05-15 11:51 GMT+03:00 Alexander Larsson <span dir="ltr"><<a href="mailto:alexl@redhat.com" target="_blank">alexl@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sat, 2017-05-13 at 22:30 +0300, Юрий Андреев wrote:<br>
> Hello everybody,<br>
><br>
> I'm trying to create a flatpack-bundle using flatpack-builder. I need<br>
> to install OpenFoam as one of the programs (<a href="https://openfoam.org/down" rel="noreferrer" target="_blank">https://openfoam.org/down</a><br>
> load/4-0-source/). The installation of it is as follows. I need to<br>
> run bashrc file, which will create environment variables for the<br>
> installation of the software in the current folder. After the script<br>
> I need to run Allwmake script which will install the software. <br>
> This installation aproach is quite different from the tipical use of<br>
> autotools or cmake. I cannot specify the --prefix, and use the comand<br>
> from makefile : "cd /app/opt/OpenFOAM-4.0/ "<br>
> Anyway I've got two quiestions:<br>
> 1. How to run bashrc during installation process?<br>
> 2. How I can get to /app/opt to start Allwmake script?<br>
<br>
</span>If you use the latest (0.9.x) versions of flatpak-builder there is a<br>
new build version, called "buildsystem": "simple". If you set that,<br>
then none of the automake special stuff is used. Instead you just fill<br>
out the "build-commands" property with an array of shell commandlines<br>
that will be run in order.<br>
<br>
I think this should make it easy do do the above.<br>
<br>
The traditional (0.8) approach would be to create your own<br>
configure/Makefile that does exactly what is needed for the install.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<wbr>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<wbr>=-=-=-=-=-=-=-=<br>
Alexander Larsson Red Hat, Inc<br>
<a href="mailto:alexl@redhat.com">alexl@redhat.com</a> <a href="mailto:alexander.larsson@gmail.com">alexander.larsson@gmail.com</a><br>
He's an underprivileged drug-addicted matador who dotes on his loving old<br>
ma. She's an enchanted nymphomaniac mercenary with the soul of a mighty<br>
warrior. They fight crime!<br>
</font></span></blockquote></div><br></div>