blob: a42aafcb85032f5482337736bb417e03b5cfc771 (
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
|
pkgname=fmilib
pkgver=2.2.3
pkgrel=1
pkgdesc="open-source implementation of the FMI open standard"
arch=('x86_64')
url="http://www.jmodelica.org/FMILibrary"
makedepends=('cmake')
depends=('minizip' 'expat')
license=('BSD')
source=("https://github.com/modelon-community/fmi-library/archive/${pkgver}.tar.gz")
sha256sums=('9a7f70f3ad3ad06c1a33c6bd80ddd6552f065f6a514de3fade99f82a3bd720dc')
prepare() {
cd "$srcdir"/fmi-library-${pkgver}
# do not override CMAKE_INSTALL_PREFIX
sed -i "/CMAKE_INSTALL_PREFIX/d" CMakeLists.txt
# install doc in /usr/share
sed -i "s|DESTINATION doc)|DESTINATION share/doc/fmilib)|g" CMakeLists.txt
}
build() {
cd "$srcdir"/fmi-library-${pkgver}
mkdir -p build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
package() {
cd "$srcdir"/fmi-library-${pkgver}/build
make DESTDIR="$pkgdir" install
}
|