[arch-commits] Commit in flatbuffers/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Mon May 10 17:04:51 UTC 2021


    Date: Monday, May 10, 2021 @ 17:04:50
  Author: arojas
Revision: 929570

Update to 1.12.1

Modified:
  flatbuffers/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++--------------
 1 file changed, 9 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-10 17:00:07 UTC (rev 929569)
+++ PKGBUILD	2021-05-10 17:04:50 UTC (rev 929570)
@@ -3,8 +3,8 @@
 
 pkgbase=flatbuffers
 pkgname=(flatbuffers python-flatbuffers)
-pkgver=1.12.0
-pkgrel=3
+pkgver=1.12.1
+pkgrel=1
 pkgdesc='An efficient cross platform serialization library for C++, with support for Java, C# and Go'
 arch=(x86_64)
 url='https://google.github.io/flatbuffers/'
@@ -11,8 +11,8 @@
 license=(Apache)
 depends=(gcc-libs)
 makedepends=(cmake python-setuptools)
-source=($pkgbase-$pkgver.tar.gz::https://github.com/google/$pkgbase/archive/v$pkgver.tar.gz)
-sha256sums=('62f2223fb9181d1d6338451375628975775f7522185266cd5296571ac152bc45')
+source=(https://github.com/google/$pkgbase/archive/v$pkgver/$pkgbase-$pkgver.tar.gz)
+sha256sums=('90e6a65ff5b8e9fc225af3a9d7bf4d2e120cfe40c27dfd5527f67c0d4eb5b954')
 
 prepare() {
   sed -i 's/-Werror=/-W/g;s/-Werror//g' $pkgname-$pkgver/CMakeLists.txt
@@ -19,28 +19,23 @@
 }
 
 build() {
-  cd $pkgbase-$pkgver
-  cmake . \
+  cmake -B build -S $pkgbase-$pkgver \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DFLATBUFFERS_BUILD_FLATLIB=OFF \
     -DFLATBUFFERS_BUILD_SHAREDLIB=ON
-  make
+  cmake --build build
 
 # Python bindings
-  cd ../$pkgbase-$pkgver/python
+  cd $pkgbase-$pkgver/python
   VERSION=$pkgver python setup.py build
 }
 
 check() {
-  cd $pkgbase-$pkgver
-  make test
-  ./tests/PythonTest.sh
+  cmake --build build --target test
 }
 
 package_flatbuffers() {
-  cd $pkgbase-$pkgver
-  make DESTDIR="$pkgdir" install
-  install -Dm755 flatc -t "$pkgdir"/usr/bin
+  DESTDIR="$pkgdir" cmake --install build
 }
 
 package_python-flatbuffers() {



More information about the arch-commits mailing list