summaryrefslogtreecommitdiff
path: root/libs/protobuf/MAKEPKG
diff options
context:
space:
mode:
authorrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
committerrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
commitc82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch)
tree56d864b5a5c6c145edd96178ae219a8f90e191a6 /libs/protobuf/MAKEPKG
downloadports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'libs/protobuf/MAKEPKG')
-rw-r--r--libs/protobuf/MAKEPKG36
1 files changed, 36 insertions, 0 deletions
diff --git a/libs/protobuf/MAKEPKG b/libs/protobuf/MAKEPKG
new file mode 100644
index 0000000..22844c6
--- /dev/null
+++ b/libs/protobuf/MAKEPKG
@@ -0,0 +1,36 @@
+#!/bin/mkpkg
+# description: Protocol Buffers compiler and libraries
+# url: https://github.com/protocolbuffers/protobuf
+
+name=protobuf
+version=36.1
+release=2
+depends=(abseil-cpp zlib)
+makedeps=(cmake)
+source=(https://github.com/protocolbuffers/$name/releases/download/v$version/$name-$version.tar.gz)
+
+sha256sums=(
+ "dc74fa582f559cbd31614ddfefb4868f43c919d7184bde514bb47f90c6025eb8"
+)
+
+build() {
+ cmake -B build -S $name-$version \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_CXX_STANDARD=17 \
+ -Dprotobuf_BUILD_TESTS=OFF \
+ -Dprotobuf_LOCAL_DEPENDENCIES_ONLY=ON \
+ -Dprotobuf_BUILD_SHARED_LIBS=ON \
+ -Dutf8_range_ENABLE_INSTALL=ON
+
+ cmake --build build
+ DESTDIR=$PKG cmake --install build
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh