27 lines
779 B
Bash
27 lines
779 B
Bash
|
# 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
|
||
|
}
|
||
|
}
|