openfoam: cp folder straight into TERMUX_PKG_MASSAGEDIR
Some installed files are not recognized when we create the massage tar, for example $PREFIX/opt/OpenFOAM-v2106/src/OpenFOAM/memory/tmp/tmp.H. The compiled files work just find without them, but if we want to compile another variant of openfoam on device then they are necessary. Copying straight into the massage dir fixes the issue.
This commit is contained in:
parent
ba557931af
commit
b1d236ee16
@ -82,10 +82,10 @@ termux_step_make() {
|
||||
}
|
||||
|
||||
termux_step_make_install() {
|
||||
mkdir -p $TERMUX_PREFIX/opt
|
||||
cp -r $TERMUX_PKG_SRCDIR $TERMUX_PREFIX/opt/OpenFOAM-v${TERMUX_PKG_VERSION}
|
||||
mkdir -p $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/opt
|
||||
cp -a $TERMUX_PKG_SRCDIR $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/opt/OpenFOAM-v${TERMUX_PKG_VERSION}
|
||||
}
|
||||
|
||||
termux_step_post_make_install() {
|
||||
sed -i 's%$ARCH%$(uname -m)%g' $TERMUX_PREFIX/opt/OpenFOAM-v${TERMUX_PKG_VERSION}/etc/config.sh/settings
|
||||
sed -i 's%$ARCH%$(uname -m)%g' $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/opt/OpenFOAM-v${TERMUX_PKG_VERSION}/etc/config.sh/settings
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user