diff options
Diffstat (limited to 'libs/protobuf/MAKEPKG')
| -rw-r--r-- | libs/protobuf/MAKEPKG | 36 |
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 |
