blob: 63c2810fed97838749db90524d010f6747fa9534 (
plain)
1 # Description: An efficient object serialization library
2 # URL: https://msgpack.org/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: graphviz
5
6 name=msgpack-c
7 version=5.0.0
8 release=1
9 source=(https://github.com/msgpack/msgpack-c/releases/download/c-$version/$name-$version.tar.gz)
10
11 build() {
12 cmake -S $name-$version -B build -G Ninja \
13 -D CMAKE_INSTALL_PREFIX=/usr \
14 -D CMAKE_INSTALL_LIBDIR=lib \
15 -D CMAKE_BUILD_TYPE=Release \
16 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
17 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
18 -D CMAKE_C_STANDARD='17' \
19 -D BUILD_SHARED_LIBS=ON \
20 -D MSGPACK_ENABLE_STATIC=OFF \
21 -D MSGPACK_BUILD_EXAMPLES=OFF \
22 -D MSGPACK_BUILD_TESTS=OFF \
23 -Wno-dev
24
25 cmake --build build
26 DESTDIR=$PKG cmake --install build
27 }
|