Date: Friday, October 25, 2019 @ 16:32:57
  Author: felixonmars
Revision: 519461

archrelease: copy trunk to community-staging-x86_64

Added:
  python-ubjson/repos/community-staging-x86_64/
  python-ubjson/repos/community-staging-x86_64/PKGBUILD
    (from rev 519458, python-ubjson/trunk/PKGBUILD)

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

Copied: python-ubjson/repos/community-staging-x86_64/PKGBUILD (from rev 519458, 
python-ubjson/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-10-25 16:32:57 UTC (rev 519461)
@@ -0,0 +1,33 @@
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+
+pkgname=python-ubjson
+pkgver=0.14.0
+pkgrel=3
+pkgdesc='Universal Binary JSON draft-12 serializer for Python'
+arch=(x86_64)
+url='https://github.com/Iotic-Labs/py-ubjson'
+license=(Apache)
+makedepends=(python-setuptools)
+depends=(python)
+source=("https://files.pythonhosted.org/packages/source/p/py-ubjson/py-ubjson-$pkgver.tar.gz"{,.asc})
+sha256sums=('f742c87bccc8653329d3f79b8b3f40d44d11d17cce7f6d7025a73c52ebf91c66'
+            'SKIP')
+validpgpkeys=(
+  'A262040D27F5F4700D097A02CF651F44EF65072E'  # Iotic Labs Ltd (Software 
release signing key) <[email protected]>
+)
+
+build() {
+  cd py-ubjson-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd py-ubjson-$pkgver
+  pyver=$(python -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))")
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-$pyver" python -m unittest discover 
-v test
+}
+
+package() {
+  cd py-ubjson-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}

Reply via email to