blob: a0f0aeabd7ae3dcab96a7f732a6f4d10c0e1a7d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
pkgname=openmodelica-omc
pkgver=1.11.0
pkgrel=2
pkgdesc="The Open Source Modelica Suite - OpenModelica Compiler"
arch=('i686' 'x86_64')
url="https://openmodelica.org"
license=('OSMC-PL')
groups=(openmodelica)
_group=OpenModelica
_name=OMCompiler
_tag=v${pkgver}
depends=('java-environment' 'lpsolve' 'hdf5-openmpi' 'omniorb' 'openscenegraph' 'sundials' 'libatomic_ops' 'python' 'gtkglext' 'ruby' 'coin-or-ipopt' 'qjson' 'suitesparse' 'boost-libs')
makedepends=('gcc-fortran' 'boost' 'clang' 'cmake' 'java-environment' 'antlr2' 'git' 'expat' 'ncurses' 'readline' 'opencl-headers' 'imagemagick')
conflicts=('openmodelica-dev' 'openmodelica-dev-omc' 'openmodelica-git')
source=( "git+https://github.com/${_group}/${_name}.git#tag=${_tag}")
sha1sums=('SKIP')
prepare() {
cd "$srcdir/$_name"
git checkout "tags/${_tag}"
sed -i "s,../,https://github.com/${_group}/,g" .gitmodules
git submodule sync
git submodule update --init --recursive
}
build() {
cd "$srcdir/$_name"
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/$_name/build"
mkdir -p ${pkgdir}/usr
cp -r * ${pkgdir}/usr
}
|