Date: Thursday, July 12, 2018 @ 20:58:26 Author: felixonmars Revision: 358214
archrelease: copy trunk to community-staging-any Added: python-signedjson/repos/community-staging-any/ python-signedjson/repos/community-staging-any/PKGBUILD (from rev 358213, python-signedjson/trunk/PKGBUILD) ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) Copied: python-signedjson/repos/community-staging-any/PKGBUILD (from rev 358213, python-signedjson/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2018-07-12 20:58:26 UTC (rev 358214) @@ -0,0 +1,46 @@ +# Maintainer: Johannes Löthberg <johan...@kyriasis.com> +# Contributor: Ivan Shapovalov <inte...@intelfx.name> + +pkgbase=python-signedjson +pkgname=(python-signedjson python2-signedjson) +pkgver=1.0.0 +pkgrel=4 + +pkgdesc='Sign JSON with Ed25519 signatures' +url='https://pypi.python.org/pypi/signedjson/' +arch=('any') +license=('Apache') + +makedepends=('python-setuptools' 'python2-setuptools') + +source=("python-signedjson-$pkgver.tar.gz::https://github.com/matrix-org/python-signedjson/archive/v$pkgver.tar.gz") + +md5sums=('2b74a01472afe3465db1eecbcecd663b') + +prepare() { + cp -a python-signedjson-$pkgver{,-python2} +} + +build() { + cd "$srcdir"/python-signedjson-$pkgver + python setup.py build + + cd "$srcdir"/python-signedjson-$pkgver-python2 + python2 setup.py build +} + +package_python-signedjson() { + depends=('python' 'python-canonicaljson' 'python-unpaddedbase64' 'python-pynacl') + + cd python-signedjson-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build +} + +package_python2-signedjson() { + depends=('python2' 'python2-canonicaljson' 'python2-unpaddedbase64' 'python2-pynacl') + + cd python-signedjson-$pkgver-python2 + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build +} + +# vim: set ts=4 sw=4 tw=0 ft=PKGBUILD :