Date: Thursday, October 27, 2022 @ 06:05:38
Author: arojas
Revision: 1338037
archrelease: copy trunk to community-x86_64
Added:
flatbuffers/repos/community-x86_64/PKGBUILD
(from rev 1338036, flatbuffers/trunk/PKGBUILD)
Deleted:
flatbuffers/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 132 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 66 insertions(+), 66 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-10-27 06:05:29 UTC (rev 1338036)
+++ PKGBUILD 2022-10-27 06:05:38 UTC (rev 1338037)
@@ -1,66 +0,0 @@
-# Maintainer: Antonio Rojas <[email protected]>
-
-# Maintainer: Chih-Hsuan Yen <[email protected]>
-# Contributor: Daichi Shinozaki <[email protected]>
-
-pkgbase=flatbuffers
-pkgname=(flatbuffers python-flatbuffers)
-# https://github.com/google/flatbuffers/blob/master/CHANGELOG.md
-pkgver=22.10.25
-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 python-numpy)
-source=(https://github.com/google/$pkgbase/archive/v$pkgver/$pkgbase-$pkgver.tar.gz)
-sha256sums=('cc9a9a29557b36313530fc60f62b0437b0b3190679f6de678a91aa436ebd0526')
-
-prepare() {
- sed -i 's/-Werror=/-W/g;s/-Werror//g' $pkgname-$pkgver/CMakeLists.txt
-
- cd $pkgbase-$pkgver
- # Work-around missing out-of-source build support in Python tests
- sed -i 's#${test_dir}/../flatc#${test_dir}/../../build/flatc#'
tests/PythonTest.sh
- # This script no longer works for us after
https://github.com/google/flatbuffers/pull/7529
- # TODO: notify upstream about this and that the Python workflow [1] doesn't
work [2]
- # [1]
https://github.com/google/flatbuffers/blob/v22.9.24/.github/workflows/build.yml#L413
- # [2]
https://github.com/google/flatbuffers/actions/runs/3103852116/jobs/5034196360
- sed -i 's#${test_dir}/../../python#${test_dir}/../python#'
tests/PythonTest.sh
-}
-
-build() {
- cmake -B build -S $pkgbase-$pkgver \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DFLATBUFFERS_BUILD_FLATLIB=OFF \
- -DFLATBUFFERS_BUILD_SHAREDLIB=ON
- cmake --build build
-
-# Python bindings
- cd $pkgbase-$pkgver/python
- VERSION=$pkgver python setup.py build
-}
-
-check() {
- # tests are broken with out-of-source builds
- # https://github.com/google/flatbuffers/issues/7282
- cmake --build build --target test || true
-
- ./$pkgbase-$pkgver/tests/PythonTest.sh
-}
-
-package_flatbuffers() {
- DESTDIR="$pkgdir" cmake --install build
-}
-
-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
-}
Copied: flatbuffers/repos/community-x86_64/PKGBUILD (from rev 1338036,
flatbuffers/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-10-27 06:05:38 UTC (rev 1338037)
@@ -0,0 +1,66 @@
+# Maintainer: Antonio Rojas <[email protected]>
+
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+# Contributor: Daichi Shinozaki <[email protected]>
+
+pkgbase=flatbuffers
+pkgname=(flatbuffers python-flatbuffers)
+# https://github.com/google/flatbuffers/blob/master/CHANGELOG.md
+pkgver=22.10.26
+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 python-numpy)
+source=(https://github.com/google/$pkgbase/archive/v$pkgver/$pkgbase-$pkgver.tar.gz)
+sha256sums=('34f1820cfd78a3d92abc880fbb1a644c7fb31a71238995f4ed6b5915a1ad4e79')
+
+prepare() {
+ sed -i 's/-Werror=/-W/g;s/-Werror//g' $pkgname-$pkgver/CMakeLists.txt
+
+ cd $pkgbase-$pkgver
+ # Work-around missing out-of-source build support in Python tests
+ sed -i 's#${test_dir}/../flatc#${test_dir}/../../build/flatc#'
tests/PythonTest.sh
+ # This script no longer works for us after
https://github.com/google/flatbuffers/pull/7529
+ # TODO: notify upstream about this and that the Python workflow [1] doesn't
work [2]
+ # [1]
https://github.com/google/flatbuffers/blob/v22.9.24/.github/workflows/build.yml#L413
+ # [2]
https://github.com/google/flatbuffers/actions/runs/3103852116/jobs/5034196360
+ sed -i 's#${test_dir}/../../python#${test_dir}/../python#'
tests/PythonTest.sh
+}
+
+build() {
+ cmake -B build -S $pkgbase-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DFLATBUFFERS_BUILD_FLATLIB=OFF \
+ -DFLATBUFFERS_BUILD_SHAREDLIB=ON
+ cmake --build build
+
+# Python bindings
+ cd $pkgbase-$pkgver/python
+ VERSION=$pkgver python setup.py build
+}
+
+check() {
+ # tests are broken with out-of-source builds
+ # https://github.com/google/flatbuffers/issues/7282
+ cmake --build build --target test || true
+
+ ./$pkgbase-$pkgver/tests/PythonTest.sh
+}
+
+package_flatbuffers() {
+ DESTDIR="$pkgdir" cmake --install build
+}
+
+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
+}