Date: Saturday, March 30, 2019 @ 09:43:49 Author: yan12125 Revision: 446254
python-flatbuffers: new pkg, checkdepends of python-autobahn Added: python-flatbuffers/ python-flatbuffers/repos/ python-flatbuffers/trunk/ python-flatbuffers/trunk/PKGBUILD ----------+ PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) Added: python-flatbuffers/trunk/PKGBUILD =================================================================== --- python-flatbuffers/trunk/PKGBUILD (rev 0) +++ python-flatbuffers/trunk/PKGBUILD 2019-03-30 09:43:49 UTC (rev 446254) @@ -0,0 +1,34 @@ +# Maintainer: Chih-Hsuan Yen <[email protected]> + +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 +}
