Date: Wednesday, June 6, 2018 @ 13:52:43 Author: eschwartz Revision: 341154
archrelease: copy trunk to community-x86_64 Added: flatbuffers/repos/community-x86_64/PKGBUILD (from rev 341153, flatbuffers/trunk/PKGBUILD) Deleted: flatbuffers/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 78 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 40 insertions(+), 38 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-06-06 13:52:26 UTC (rev 341153) +++ PKGBUILD 2018-06-06 13:52:43 UTC (rev 341154) @@ -1,38 +0,0 @@ -# Maintainer: Antonio Rojas <aro...@archlinux.org> -# Contributor: Daichi Shinozaki <dsd...@gmail.com> - -pkgname=flatbuffers -pkgver=1.9.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=('5ca5491e4260cacae30f1a5786d109230db3f3a6e5a0eb45d0d0608293d247e3') - -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 -} Copied: flatbuffers/repos/community-x86_64/PKGBUILD (from rev 341153, flatbuffers/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-06-06 13:52:43 UTC (rev 341154) @@ -0,0 +1,40 @@ +# Maintainer: Antonio Rojas <aro...@archlinux.org> +# Contributor: Daichi Shinozaki <dsd...@gmail.com> + +pkgname=flatbuffers +pkgver=1.9.0 +pkgrel=2 +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=('5ca5491e4260cacae30f1a5786d109230db3f3a6e5a0eb45d0d0608293d247e3') + +prepare() { + mkdir -p build + sed -i 's/-Werror=/-W/g;s/-Werror//g' $pkgname-$pkgver/CMakeLists.txt +} + +build() { + cd build + cmake ../$pkgname-$pkgver \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DFLATBUFFERS_BUILD_FLATLIB=OFF \ + -DFLATBUFFERS_BUILD_SHAREDLIB=ON + make +} + +check() { + cd build + make test +} + +package() { + cd build + make DESTDIR="$pkgdir" install + install -Dm755 flatc -t "$pkgdir"/usr/bin +}