1
0
forked from ports/opt
opt/protobuf/Pkgfile
Tim Biermann 45e3145726
Revert "protobuf: 25.3 -> 26.0"
This reverts commit 07b322ea8cb7f8ff40bbeeca4cd1327b49a765d3.

Wait until protobuf-c updates, see
https://github.com/protobuf-c/protobuf-c/issues/476#issuecomment-847305880
2024-03-16 12:43:37 +01:00

26 lines
805 B
Plaintext

# Description: Protocol Buffers are a way of encoding structured data in an efficient yet extensible format.
# URL: https://developers.google.com/protocol-buffers/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: abseil-cpp
name=protobuf
version=25.3
release=1
source=(https://github.com/protocolbuffers/protobuf/archive/v$version/$name-$version.tar.gz)
build() {
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D protobuf_BUILD_SHARED_LIBS=ON \
-D protobuf_BUILD_TESTS=OFF \
-D protobuf_ABSL_PROVIDER=package \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
}