[arch-commits] Commit in python-flatbuffers/repos (2 files)

Chih-Hsuan Yen yan12125 at archlinux.org
Sat Mar 30 09:44:54 UTC 2019


    Date: Saturday, March 30, 2019 @ 09:44:54
  Author: yan12125
Revision: 446255

archrelease: copy trunk to community-any

Added:
  python-flatbuffers/repos/community-any/
  python-flatbuffers/repos/community-any/PKGBUILD
    (from rev 446254, python-flatbuffers/trunk/PKGBUILD)

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

Copied: python-flatbuffers/repos/community-any/PKGBUILD (from rev 446254, python-flatbuffers/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-03-30 09:44:54 UTC (rev 446255)
@@ -0,0 +1,34 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-flatbuffers
+pkgver=1.10.0
+pkgrel=1
+pkgdesc='Memory Efficient Serialization Library'
+arch=(any)
+url='https://google.github.io/flatbuffers/'
+license=(Apache)
+makedepends=(python-setuptools)
+depends=(python)
+checkdepends=(bash flatbuffers)
+source=("$pkgname-$pkgver.tar.gz"::"https://github.com/google/flatbuffers/archive/v$pkgver.tar.gz")
+sha256sums=('3714e3db8c51e43028e10ad7adffb9a36fc4aa5b1a363c2d0c4303dd1be59a7c')
+
+prepare() {
+  cd flatbuffers-$pkgver
+  sed -i 's#${test_dir}/../flatc#flatc#' tests/PythonTest.sh
+}
+
+build() {
+  cd flatbuffers-$pkgver/python
+  VERSION=$pkgver python setup.py build
+}
+
+check() {
+  cd flatbuffers-$pkgver
+  ./tests/PythonTest.sh
+}
+
+package() {
+  cd flatbuffers-$pkgver/python
+  VERSION=$pkgver python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}


More information about the arch-commits mailing list