New package: flatbuffers-1.10.0

This commit is contained in:
Elie ROUDNINSKI 2018-11-11 16:14:16 +00:00 committed by maxice8
parent 6f323d077a
commit b0b29e804a
2 changed files with 27 additions and 0 deletions

1
srcpkgs/flatbuffers-devel Symbolic link
View File

@ -0,0 +1 @@
flatbuffers

View File

@ -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 <xademax@gmail.com>"
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
}
}