PKGBUILDs/community/python-ubjson/PKGBUILD

36 lines
956 B
Bash
Raw Normal View History

2019-05-12 18:31:57 +00:00
# Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - remove makedepend on python-pypandoc
pkgname=python-ubjson
2019-06-21 12:37:01 +00:00
pkgver=0.14.0
2019-05-12 18:31:57 +00:00
pkgrel=1
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)
2019-06-21 12:37:01 +00:00
source=("https://files.pythonhosted.org/packages/source/p/py-ubjson/py-ubjson-$pkgver.tar.gz"{,.asc})
sha256sums=('f742c87bccc8653329d3f79b8b3f40d44d11d17cce7f6d7025a73c52ebf91c66'
2019-05-12 18:31:57 +00:00
'SKIP')
validpgpkeys=(
'A262040D27F5F4700D097A02CF651F44EF65072E' # Iotic Labs Ltd (Software release signing key) <info@iotic-labs.com>
)
build() {
cd py-ubjson-$pkgver
python setup.py build
}
check() {
cd py-ubjson-$pkgver
python -m unittest discover -v test
}
package() {
cd py-ubjson-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}