[arch-commits] Commit in python-canonicaljson/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 19:59:45 UTC 2019
Date: Friday, October 25, 2019 @ 19:59:44
Author: felixonmars
Revision: 519673
archrelease: copy trunk to community-staging-any
Added:
python-canonicaljson/repos/community-staging-any/
python-canonicaljson/repos/community-staging-any/PKGBUILD
(from rev 519671, python-canonicaljson/trunk/PKGBUILD)
----------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
Copied: python-canonicaljson/repos/community-staging-any/PKGBUILD (from rev 519671, python-canonicaljson/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 19:59:44 UTC (rev 519673)
@@ -0,0 +1,60 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Contributor: Ivan Shapovalov <intelfx at intelfx.name>
+
+pkgbase=python-canonicaljson
+pkgname=(python-canonicaljson python2-canonicaljson)
+pkgver=1.1.4
+pkgrel=3
+
+pkgdesc='Canonical JSON'
+url='https://pypi.python.org/pypi/canonicaljson/'
+arch=('any')
+license=('Apache')
+
+makedepends=('python-setuptools'
+ 'python-simplejson'
+ 'python-frozendict'
+
+ 'python2-setuptools'
+ 'python2-simplejson'
+ 'python2-frozendict')
+
+source=("python-canonicaljson-$pkgver.tar.gz::https://github.com/matrix-org/python-canonicaljson/archive/v${pkgver}.tar.gz")
+
+md5sums=('3f29b4eab8219076532ab34315843634')
+
+prepare() {
+ cp -a python-canonicaljson-$pkgver{,-python2}
+}
+
+build() {
+ cd "$srcdir"/python-canonicaljson-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/python-canonicaljson-$pkgver-python2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/python-canonicaljson-$pkgver
+ python setup.py test
+
+ cd "$srcdir"/python-canonicaljson-$pkgver-python2
+ python2 setup.py test
+}
+
+package_python-canonicaljson() {
+ depends=('python' 'python-simplejson' 'python-frozendict')
+
+ cd python-canonicaljson-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+
+package_python2-canonicaljson() {
+ depends=('python2' 'python2-simplejson' 'python2-frozendict')
+
+ cd python-canonicaljson-$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