Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions srcpkgs/openfoam2512/INSTALL
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
case "${ACTION}" in
post)
echo "**"
echo "** Different ways to setup OpenFOAM (www.openfoam.com)"
echo "** - source from ~/.bashrc file: . /opt/OpenFOAM-v2512/etc/bashrc"
echo "**"
;;
esac
26 changes: 26 additions & 0 deletions srcpkgs/openfoam2512/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Template file for 'openfoam2512'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The package sbould be called openfoam, not openfoam2512.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the users usually would install mutiple versions of openfoam (e.g 2512, 2412, 2606). and they expect that the 2512 version will not get updated automatically to 2606.

pkgname=openfoam2512
version=2512
revision=1
makedepends="libfl-devel openmpi-devel gnuplot libboost_thread flex boost-devel openmpi"
depends="openmpi libboost_thread flex boost libgomp gnuplot"
short_desc="OpenFOAM is a free, open source CFD software released and developed by OpenCFD Ltd"
maintainer="muez <muezabdalla777@gmail.com>"
license="GPL-3.0"
homepage="https://www.openfoam.com/"
distfiles="${SOURCEFORGE_SITE}/openfoam/OpenFOAM-v${version}.tgz
${SOURCEFORGE_SITE}/openfoam/ThirdParty-v${version}.tar.gz"
checksum="ae9a0a133a2e996b88bd1d0f3cc229e3c49968c368feae61bd3ec63deaf337aa
2f84e28a6849b6e5fe0f6af01fe90c932ca48142d5b4525d6a1bdfcbd85ca5a9"
python_version=3

do_build() {
mv "ThirdParty-v${version}" "OpenFOAM-v${version}/thirdparty"
cd "OpenFOAM-v${version}"
source ./etc/bashrc || exit 0
./Allwmake -j ${makejobs}
}
do_install() {
vmkdir opt
mv *-v${version} ${PKGDESTDIR}/opt/
}