2020-06-07 14:02:34 +00:00
|
|
|
# Description: An efficient cross platform serialization library for C++, with support for Java, C# and Go
|
|
|
|
# URL: https://google.github.io/flatbuffers/
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2023-01-06 15:33:16 +00:00
|
|
|
# Depends on: python3-setuptools
|
2020-06-07 14:02:34 +00:00
|
|
|
|
|
|
|
name=flatbuffers
|
2023-03-03 22:30:49 +01:00
|
|
|
version=23.3.3
|
2020-06-07 14:02:34 +00:00
|
|
|
release=1
|
2021-05-11 21:06:43 +00:00
|
|
|
source=(https://github.com/google/flatbuffers/archive/v$version/$name-$version.tar.gz)
|
2020-06-07 14:02:34 +00:00
|
|
|
|
|
|
|
build() {
|
2022-01-03 14:39:02 +01:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
2020-11-08 11:02:14 +00:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-06 23:52:29 +00:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 11:02:14 +00:00
|
|
|
-D FLATBUFFERS_BUILD_FLATLIB=OFF \
|
|
|
|
-D FLATBUFFERS_BUILD_SHAREDLIB=ON \
|
|
|
|
-Wno-dev
|
2020-10-17 15:16:16 +00:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2020-06-07 14:02:34 +00:00
|
|
|
}
|