blob: 5db4258dfc218fc9d042bc59062c8f4b4902a4c3 (
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
|
pkgname=fmilib
pkgver=3.0.4
pkgrel=1
pkgdesc="open-source implementation of the FMI open standard"
arch=('x86_64')
url="https://github.com/modelon-community/fmi-library"
license=(BSD-3-Clause)
makedepends=(cmake)
depends=(glibc expat minizip)
options=(!lto)
source=("https://github.com/modelon-community/fmi-library/archive/${pkgver}.tar.gz")
sha256sums=('99bb1381f67fbc521faf8229ddeb9ae47aaa9d764989dcbc9af296ec565cd34f')
prepare() {
cd "$srcdir"/fmi-library-${pkgver}
}
build() {
cd "$srcdir"/fmi-library-${pkgver}
cmake -DCMAKE_INSTALL_PREFIX=/usr -DFMILIB_BUILD_STATIC_LIB=OFF -DFMILIB_BUILD_TESTS=OFF -DFMILIB_EXTERNAL_LIBS=ON -B build .
cmake --build build
}
package() {
cd "$srcdir"/fmi-library-${pkgver}
DESTDIR="$pkgdir" cmake --build build --target install
}
|