summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e5d9c918233fe7885b47c5841368349fd084f9d (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
pkgname=python-pyfmi
pkgver=2.23.0
pkgrel=1
pkgdesc="A package for working with dynamic models compliant with the FMI standard"
url="https://github.com/modelon-community/PyFMI"
arch=(x86_64)
license=(LGPL-3.0-only)
makedepends=(python-build python-installer python-setuptools cython)
depends=(glibc fmilib python python-numpy python-scipy python-assimulo)
optdepends=('python-matplotlib: plots')
options=(!lto)
source=("https://github.com/modelon/PyFMI/archive/PyFMI-${pkgver}.tar.gz")
sha256sums=('90b9a26274122d9ac75b177c1d85de8bdef3b170dc914902a76fd26bbd533bdf')

prepare() {
  cd "${srcdir}"/PyFMI-PyFMI-${pkgver}
}

build() {
  cd "${srcdir}"/PyFMI-PyFMI-${pkgver}
  export FMIL_HOME=/usr
  python -m build --wheel --no-isolation
}

package() {
  cd "${srcdir}"/PyFMI-PyFMI-${pkgver}
  python -m installer --destdir="$pkgdir" dist/*.whl
}