[arch-commits] Commit in python-anyjson/repos/community-any (PKGBUILD PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Tue Dec 17 10:10:10 UTC 2019
Date: Tuesday, December 17, 2019 @ 10:10:10
Author: jelle
Revision: 537917
archrelease: copy trunk to community-any
Added:
python-anyjson/repos/community-any/PKGBUILD
(from rev 537916, python-anyjson/trunk/PKGBUILD)
Deleted:
python-anyjson/repos/community-any/PKGBUILD
----------+
PKGBUILD | 66 +++++++++++++++++++++++++------------------------------------
1 file changed, 28 insertions(+), 38 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-12-17 10:10:03 UTC (rev 537916)
+++ PKGBUILD 2019-12-17 10:10:10 UTC (rev 537917)
@@ -1,38 +0,0 @@
-# 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=11
-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"
-}
Copied: python-anyjson/repos/community-any/PKGBUILD (from rev 537916, python-anyjson/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-12-17 10:10:10 UTC (rev 537917)
@@ -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=12
+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