

set -ex



test -f ${PREFIX}/lib/libprotoc.so
test ! -f ${PREFIX}/lib/libprotoc.a
test -f ${PREFIX}/lib/libprotobuf.so
test ! -f ${PREFIX}/lib/libprotobuf.a
test -f ${PREFIX}/lib/libprotobuf-lite.so
test ! -f ${PREFIX}/lib/libprotobuf-lite.a
test -f ${PREFIX}/lib/cmake/protobuf/protobuf-config.cmake
pkg-config --print-errors --exact-version "25.3.0" protobuf
pkg-config --print-errors --exact-version "25.3.0" protobuf-lite
protoc --help
cd cmake_test
cmake -GNinja $CMAKE_ARGS .
cmake --build .
exit 0
