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

Chih-Hsuan Yen yan12125 at gemini.archlinux.org
Tue Aug 23 15:14:34 UTC 2022


    Date: Tuesday, August 23, 2022 @ 15:14:33
  Author: yan12125
Revision: 1275454

upgpkg: flatbuffers 2.0.7-1 & various improvements

* List myself as a maintainer
* Add the link to upstream changelog, which is introduced in this version
* Add python-numpy to as a dependency to make namcap happy
* Drop a merged patch

Modified:
  flatbuffers/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-23 14:51:04 UTC (rev 1275453)
+++ PKGBUILD	2022-08-23 15:14:33 UTC (rev 1275454)
@@ -1,28 +1,25 @@
 # Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
 # Contributor: Daichi Shinozaki <dsdseg at gmail.com>
 
 pkgbase=flatbuffers
 pkgname=(flatbuffers python-flatbuffers)
-pkgver=2.0.6
-pkgrel=2
+# https://github.com/google/flatbuffers/blob/master/CHANGELOG.md
+pkgver=2.0.7
+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/'
 license=(Apache)
 depends=(gcc-libs)
-makedepends=(cmake python-setuptools)
-source=(https://github.com/google/$pkgbase/archive/v$pkgver/$pkgbase-$pkgver.tar.gz
-        $pkgbase-7426.patch::https://github.com/google/flatbuffers/commit/9d1ce9a10039416d98d3d88e029cb7b1931d1eed.patch)
-sha256sums=('e2dc24985a85b278dd06313481a9ca051d048f9474e0f199e372fea3ea4248c9'
-            'e99a56fc20abf228651462063387e799628ee789afe7437a57706e574aff1da3')
+makedepends=(cmake python-setuptools python-numpy)
+source=(https://github.com/google/$pkgbase/archive/v$pkgver/$pkgbase-$pkgver.tar.gz)
+sha256sums=('4c7986174dc3941220bf14feaacaad409c3e1526d9ad7f490366fede9a6f43fa')
 
 prepare() {
   sed -i 's/-Werror=/-W/g;s/-Werror//g' $pkgname-$pkgver/CMakeLists.txt
 
-  # Backport https://github.com/google/flatbuffers/pull/7246 (merged upstream)
   cd $pkgbase-$pkgver
-  patch -Np1 -i ../$pkgbase-7426.patch
-
   # Work-around missing out-of-source build support in Python tests
   sed -i 's#${test_dir}/../flatc#${test_dir}/../../build/flatc#' tests/PythonTest.sh
 }
@@ -54,6 +51,9 @@
 package_python-flatbuffers() {
   pkgdesc='An efficient cross platform serialization library for Python'
   depends=(python)
+  optdepends=(
+    'python-numpy: support for Numpy arrays'
+  )
 
   cd $pkgbase-$pkgver/python
   VERSION=$pkgver python setup.py install --root="$pkgdir" --optimize=1 --skip-build



More information about the arch-commits mailing list