Problem with install programm in bundle

Alexander Larsson alexl at redhat.com
Mon May 15 08:51:21 UTC 2017


On Sat, 2017-05-13 at 22:30 +0300, Юрий Андреев wrote:
> Hello everybody,
> 
> I'm trying to create a flatpack-bundle using flatpack-builder. I need
> to install OpenFoam as one of the programs (https://openfoam.org/down
> load/4-0-source/). The installation of it is as follows. I need to
> run bashrc file, which will create environment variables for the
> installation of the software in the current folder. After the script
> I need to run Allwmake script which will install the software. 
> This installation aproach is quite different from the tipical use of
> autotools or cmake. I cannot specify the --prefix, and use the comand
> from makefile : "cd /app/opt/OpenFOAM-4.0/ "
> Anyway I've got two quiestions:
> 1. How to run bashrc during installation process?
> 2. How I can get to /app/opt to start Allwmake script?

If you use the latest (0.9.x) versions of flatpak-builder there is a
new build version, called "buildsystem": "simple". If you set that,
then none of the automake special stuff is used. Instead you just fill
out the "build-commands" property with an array of shell commandlines
that will be run in order.

I think this should make it easy do do the above.

The traditional (0.8) approach would be to create your own
configure/Makefile that does exactly what is needed for the install.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
       alexl at redhat.com            alexander.larsson at gmail.com 
He's an underprivileged drug-addicted matador who dotes on his loving old 
ma. She's an enchanted nymphomaniac mercenary with the soul of a mighty 
warrior. They fight crime! 



More information about the xdg-app mailing list