# Maintainer: Guillaume Horel # Contributor: Antonio Rojas # Contributor: Daichi Shinozaki pkgname=flatbuffers-static _pkgname=flatbuffers pkgver=1.11.0 pkgrel=1 pkgdesc='An efficient cross platform serialization library for C++, with support for Java, C# and Go' arch=(x86_64) url='http://google.github.io/flatbuffers/' license=(Apache) depends=(gcc-libs) makedepends=(cmake) options=('staticlibs') source=($pkgname-$pkgver.tar.gz::https://github.com/google/$_pkgname/archive/v$pkgver.tar.gz) sha256sums=('3f4a286642094f45b1b77228656fbd7ea123964f19502f9ecfd29933fd23a50b') provides=('flatbuffers') conflicts=('flatbuffers') prepare() { mkdir -p build } build() { cd build cmake ../$_pkgname-$pkgver \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_CXX_FLAGS="-Wno-ignored-qualifiers" make } check() { cd build make test } package() { cd build make DESTDIR="$pkgdir" install install -Dm755 flatc -t "$pkgdir"/usr/bin }