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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:49:32 UTC 2020


    Date: Monday, November 9, 2020 @ 15:49:31
  Author: felixonmars
Revision: 747170

archrelease: copy trunk to community-staging-any

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

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

Copied: python-anyjson/repos/community-staging-any/PKGBUILD (from rev 747169, python-anyjson/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:49:31 UTC (rev 747170)
@@ -0,0 +1,28 @@
+# 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
+pkgname=python-$_pypiname
+pkgver=0.3.3
+pkgrel=13
+pkgdesc="Wraps the best available JSON implementation available in a common interface"
+arch=(any)
+url="https://pypi.python.org/pypi/$_pypiname"
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/a/$_pypiname/$_pypiname-${pkgver}.tar.gz")
+md5sums=('2ea28d6ec311aeeebaf993cb3008b27c')
+
+build() {
+  cd "$_pypiname-${pkgver}"
+  python setup.py build
+}
+
+package() {
+  cd "$_pypiname-${pkgver}"
+  python setup.py install --root="${pkgdir}/" --optimize=1
+
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list