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

Felix Yan felixonmars at archlinux.org
Sat Oct 26 05:35:24 UTC 2019


    Date: Saturday, October 26, 2019 @ 05:35:24
  Author: felixonmars
Revision: 520138

archrelease: copy trunk to community-staging-any

Added:
  python-signedjson/repos/community-staging-any/
  python-signedjson/repos/community-staging-any/PKGBUILD
    (from rev 520135, python-signedjson/trunk/PKGBUILD)

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

Copied: python-signedjson/repos/community-staging-any/PKGBUILD (from rev 520135, python-signedjson/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 05:35:24 UTC (rev 520138)
@@ -0,0 +1,46 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Contributor: Ivan Shapovalov <intelfx at intelfx.name>
+
+pkgbase=python-signedjson
+pkgname=(python-signedjson python2-signedjson)
+pkgver=1.0.0
+pkgrel=5
+
+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 :



More information about the arch-commits mailing list