blob: 64f623830632d3de7f77de4ae68ff36c72126169 (
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
|
pkgname=openmodelica
pkgver=1.24.0
pkgrel=4
pkgdesc="Open-source Modelica-based modeling and simulation environment"
url="https://www.openmodelica.org"
_giturl="https://github.com/OpenModelica/OpenModelica.git"
license=('OSMC-PL')
arch=('x86_64')
depends=('java-environment' 'lapack' 'openscenegraph' 'boost-libs' 'qt6-webengine' 'qt6-svg' 'qt6-tools' 'qt6-5compat')
makedepends=('gcc-fortran' 'cmake' 'git' 'boost')
options=('!lto')
source=("${pkgname}::git+${_giturl}#tag=v${pkgver}")
sha256sums=('c18f2030032b417d1afd37d90090e8de8e2e4f0f9364c01b2db0caea5b4cd26e')
prepare() {
cd "${pkgname}"
git remote set-url origin ${_giturl}
git submodule update --force --init --recursive
# Library index file //.openmodelica/libraries/index.json doesn't exist
curl -L https://github.com/OpenModelica/OpenModelica/pull/13078.patch | patch -p1
sed -i "s|Qt5|Qt6|g" OMSens_Qt/CMakeLists.txt
}
build() {
cd "${pkgname}"
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DOM_USE_CCACHE=OFF -DOM_QT_MAJOR_VERSION=6 -B build .
make -C build
}
package() {
cd "${pkgname}"
make install -C build DESTDIR="${pkgdir}"
rm -r "${pkgdir}"/usr/share/zmq
}
|