diff --git a/srcpkgs/flatbuffers-devel b/srcpkgs/flatbuffers-devel new file mode 120000 index 00000000000..93bde0e41fe --- /dev/null +++ b/srcpkgs/flatbuffers-devel @@ -0,0 +1 @@ +flatbuffers \ No newline at end of file diff --git a/srcpkgs/flatbuffers/template b/srcpkgs/flatbuffers/template new file mode 100644 index 00000000000..2888235df1a --- /dev/null +++ b/srcpkgs/flatbuffers/template @@ -0,0 +1,26 @@ +# Template file for 'flatbuffers' +pkgname=flatbuffers +version=1.10.0 +revision=1 +build_style=cmake +short_desc="Memory Efficient Serialization Library" +maintainer="Elie ROUDNINSKI " +license="GPL-3.0-or-later" +homepage="https://google.github.io/flatbuffers/" +distfiles="https://github.com/google/${pkgname}/archive/v${version}.tar.gz" +checksum=3714e3db8c51e43028e10ad7adffb9a36fc4aa5b1a363c2d0c4303dd1be59a7c + +if [ "$CROSS_BUILD" ]; then + # Disable tests to prevent executing target binaries on host + configure_args="-DFLATBUFFERS_BUILD_TESTS=OFF" +fi + +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 + } +}