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

Evangelos Foutras foutrelis at archlinux.org
Fri Oct 25 15:33:21 UTC 2019


    Date: Friday, October 25, 2019 @ 15:33:20
  Author: foutrelis
Revision: 519087

archrelease: copy trunk to community-staging-any

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

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

Copied: python-anyjson/repos/community-staging-any/PKGBUILD (from rev 519084, python-anyjson/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 15:33:20 UTC (rev 519087)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Benjamin A. Shelton <zancarius at gmail.com>
+# Contributor: p2k <Patrick.Schneider at uni-ulm.de>
+
+_pypiname=anyjson
+pkgbase=python-$_pypiname
+pkgname=("python-$_pypiname" "python2-$_pypiname")
+pkgver=0.3.3
+pkgrel=10
+pkgdesc="Wraps the best available JSON implementation available in a common interface"
+arch=(any)
+url="https://pypi.python.org/pypi/$_pypiname"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://files.pythonhosted.org/packages/source/a/$_pypiname/$_pypiname-${pkgver}.tar.gz")
+md5sums=('2ea28d6ec311aeeebaf993cb3008b27c')
+
+prepare() {
+  cp -a "$_pypiname-${pkgver}" "python2-$_pypiname-${pkgver}"
+}
+
+package_python-anyjson() {
+  depends=('python')
+
+  cd "$_pypiname-${pkgver}"
+  python setup.py install --root="${pkgdir}/" --optimize=1
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-anyjson() {
+  depends=('python2')
+
+  cd "python2-$_pypiname-${pkgver}"
+  python2 setup.py install --root="${pkgdir}/" --optimize=1
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list