# Template file for 'flatbuffers' pkgname=flatbuffers version=1.11.0 revision=1 build_style=cmake short_desc="Memory Efficient Serialization Library" maintainer="Elie ROUDNINSKI " license="Apache-2.0" homepage="https://google.github.io/flatbuffers/" distfiles="https://github.com/google/${pkgname}/archive/v${version}.tar.gz" checksum=3f4a286642094f45b1b77228656fbd7ea123964f19502f9ecfd29933fd23a50b if [ "$CROSS_BUILD" ]; then # Disable tests to prevent executing target binaries on host configure_args+=" -DFLATBUFFERS_BUILD_TESTS=OFF" fi case "$XBPS_TARGET_MACHINE" in *-musl) configure_args+=" -DFLATBUFFERS_LOCALE_INDEPENDENT=0";; esac flatbuffers-devel_package() { short_desc+=" - development files" depends="${sourcepkg}>=${version}_${revision}" pkg_install() { vmove usr/include vmove usr/lib/cmake vmove usr/lib/libflatbuffers.a } }