pkgname=openmodelica-omc pkgver=1.16.0 pkgrel=1 pkgdesc="The Open Source Modelica Suite - OpenModelica Compiler" arch=('x86_64') url="https://openmodelica.org" license=('OSMC-PL') groups=(openmodelica) depends=('java-environment' 'lpsolve' 'hdf5-openmpi' 'omniorb' 'openscenegraph' 'sundials' 'libatomic_ops' 'python' 'gtkglext' 'ruby' 'coin-or-ipopt' 'suitesparse' 'boost-libs') makedepends=('gcc-fortran' 'boost' 'clang' 'cmake' 'java-environment' 'antlr2' 'git' 'expat' 'ncurses' 'readline' 'opencl-headers' 'imagemagick') source=("git+https://github.com/OpenModelica/OpenModelica.git#tag=v${pkgver}") sha1sums=('SKIP') prepare() { cd "$srcdir/OpenModelica" git checkout "tags/v${pkgver}" sed -i "s,\.\./,https://github.com/OpenModelica/,g" .gitmodules git submodule sync git submodule update --init --recursive } build() { cd "$srcdir/OpenModelica/OMCompiler" autoconf export CPPFLAGS="$CPPFLAGS -DH5_USE_18_API" ./configure --prefix=/usr/ --without-omc --with-omniORB --with-cppruntime --with-lapack='-llapack -lblas' make } package() { cd "$srcdir/OpenModelica/OMCompiler/build" mkdir -p ${pkgdir}/usr cp -r * ${pkgdir}/usr }