From b1d236ee16bb6c8296f5bdcb48fa519aba8dd7bf Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Sat, 4 Dec 2021 11:26:40 +0100 Subject: [PATCH] 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. --- packages/openfoam/build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/openfoam/build.sh b/packages/openfoam/build.sh index 51ad2d8cc..069783448 100644 --- a/packages/openfoam/build.sh +++ b/packages/openfoam/build.sh @@ -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 }