diff options
author | Tim Biermann <tbier@posteo.de> | 2020-06-07 14:02:34 +0000 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2020-06-07 16:12:35 +0000 |
commit | 799d3a3f446ce80b7ffed3db2c58aad84cdacd4b (patch) | |
tree | 62146c081ac2e016abd8274d963646a94d788072 /flatbuffers/Pkgfile | |
parent | 2cecd8ea5b6de01d256efeeffe9e3d0bf9f83b6b (diff) | |
download | contrib-799d3a3f446ce80b7ffed3db2c58aad84cdacd4b.tar.gz contrib-799d3a3f446ce80b7ffed3db2c58aad84cdacd4b.tar.xz |
flatbuffers: initial commit, version 1.12.0
Diffstat (limited to 'flatbuffers/Pkgfile')
-rw-r--r-- | flatbuffers/Pkgfile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/flatbuffers/Pkgfile b/flatbuffers/Pkgfile new file mode 100644 index 000000000..66af8c4f9 --- /dev/null +++ b/flatbuffers/Pkgfile @@ -0,0 +1,20 @@ +# Description: An efficient cross platform serialization library for C++, with support for Java, C# and Go +# URL: https://google.github.io/flatbuffers/ +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: cmake python3-setuptools + +name=flatbuffers +version=1.12.0 +release=1 +source=(https://github.com/google/flatbuffers/archive/v$version/$name-$version.tar.gz) + +build() { + cd $name-$version + cmake . \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DFLATBUFFERS_BUILD_FLATLIB=OFF \ + -DFLATBUFFERS_BUILD_SHAREDLIB=ON + make + make DESTDIR=$PKG install +} |