Date: Wednesday, April 4, 2018 @ 21:15:28
  Author: arojas
Revision: 314284

Add kube and dependencies (13 votes)

Added:
  flatbuffers/
  flatbuffers/trunk/
  flatbuffers/trunk/PKGBUILD

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Added: flatbuffers/trunk/PKGBUILD
===================================================================
--- flatbuffers/trunk/PKGBUILD                          (rev 0)
+++ flatbuffers/trunk/PKGBUILD  2018-04-04 21:15:28 UTC (rev 314284)
@@ -0,0 +1,38 @@
+# Maintainer: Antonio Rojas <aro...@archlinux.org>
+# Contributor: Daichi Shinozaki <dsd...@gmail.com>
+
+pkgname=flatbuffers
+pkgver=1.8.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)
+source=($pkgname-$pkgver.tar.gz::https://github.com/google/$pkgname/archive/v$pkgver.tar.gz)
+sha256sums=('c45029c0a0f1a88d416af143e34de96b3091642722aa2d8c090916c6d1498c2e')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake ../$pkgname-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DFLATBUFFERS_BUILD_SHAREDLIB=ON
+  make
+}
+
+check() {
+  cd build
+  make test
+}
+
+package() {
+  cd build
+  make DESTDIR="$pkgdir" install
+  install -Dm755 flatc -t "$pkgdir"/usr/bin
+}

Reply via email to