[arch-commits] Commit in python-anyjson/repos (2 files)
Felix Yan
fyan at archlinux.org
Sat Sep 19 12:37:08 UTC 2015
Date: Saturday, September 19, 2015 @ 14:37:08
Author: fyan
Revision: 140768
archrelease: copy trunk to community-staging-any
Added:
python-anyjson/repos/community-staging-any/
python-anyjson/repos/community-staging-any/PKGBUILD
(from rev 140767, python-anyjson/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-anyjson/repos/community-staging-any/PKGBUILD (from rev 140767, python-anyjson/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 12:37:08 UTC (rev 140768)
@@ -0,0 +1,39 @@
+# $Id$
+# 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=7
+pkgdesc="Wraps the best available JSON implementation available in a common interface"
+arch=(any)
+url="http://pypi.python.org/pypi/$_pypiname"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("http://pypi.python.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