#!/bin/mkpkg
# description: Memory efficient serialization library
# url: https://google.github.io/flatbuffers/

name=flatbuffers
version=25.12.19
release=1
source=(https://github.com/google/flatbuffers/archive/v$version/$name-$version.tar.gz)

sha256sums=(
    "f81c3162b1046fe8b84b9a0dbdd383e24fdbcf88583b9cb6028f90d04d90696a"
)

build() {
  cmake -B build -S $name-$version \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DCMAKE_BUILD_TYPE=Release \
    -DFLATBUFFERS_BUILD_TESTS=OFF \
    -DFLATBUFFERS_BUILD_SHAREDLIB=ON

  cmake --build build
  DESTDIR=$PKG cmake --install build
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh
