🔒 Repository is read-only – file editing is disabled.
123456789101112131415161718192021222324252627282930313233
pkgname: flatbuffers
pkgver: '25.12.19'
pkgrel: '1'
pkgdesc: 'An efficient cross platform serialization library for C++, with support for Java, C-sharp and Go'
url: 'https://google.github.io/flatbuffers/'
arch: x86_64
depends: []
makedepends:
- cmake
source:
- 'https://github.com/google/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz'
sha256sums:
- SKIP
build: |
cd ${pkgname}-${pkgver}
mkdir -pv build
sed -i 's/-Werror=/-W/g;s/-Werror//g' CMakeLists.txt
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DFLATBUFFERS_BUILD_FLATLIB=OFF \
-DFLATBUFFERS_BUILD_SHAREDLIB=ON
make
make DESTDIR=${PKGDIR} install
install -Dm755 flatc -t ${PKGDIR}/usr/bin
package: |
true