# Maintainer: Natanael Copa pkgname=flatbuffers pkgver=1.11.0 pkgrel=0 pkgdesc="Memory Efficient Serialization Library" url="https://google.github.io/flatbuffers/" arch="all !s390x" license="Apache-2.0" depends="" depends_dev="" makedepends="$depends_dev cmake" install="" subpackages="$pkgname-dev" source="flatbuffers-$pkgver.tar.gz::https://github.com/google/flatbuffers/archive/v$pkgver.tar.gz 0001-Add-detection-of-strtoull_l-function.patch" builddir="$srcdir/flatbuffers-$pkgver" build() { mkdir -p "$builddir"/build cd "$builddir"/build cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DFLATBUFFERS_BUILD_SHAREDLIB=on \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { cd "$builddir"/build make test } package() { cd "$builddir"/build make install DESTDIR="$pkgdir" install -Dm755 "$builddir"/build/flatc \ "$pkgdir"/usr/bin/flatc } sha512sums="cbb2e1e6885255cc950e2fa8248b56a8bc2c6e52f6fc7ed9066e6ae5a1d53f1263594b83f4b944a672cf9d0e1e800e51ce7fa423eff45abf5056269879c286fe flatbuffers-1.11.0.tar.gz 3720593d25fb5769cab5bcf3d0e55709545de04ccc783c7cd7cac8aa99d4e861ccb6d1123073b875f75b98e45ebb8151d9b56df855bae7f28f55cbf4bc36c0b8 0001-Add-detection-of-strtoull_l-function.patch"