[arch-commits] Commit in python-ujson/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Wed Jul 22 19:46:14 UTC 2020


    Date: Wednesday, July 22, 2020 @ 19:46:13
  Author: anthraxx
Revision: 664904

upgpkg: python-ujson 3.0.0-1

Modified:
  python-ujson/trunk/PKGBUILD

----------+
 PKGBUILD |   32 ++++++++------------------------
 1 file changed, 8 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-22 19:45:40 UTC (rev 664903)
+++ PKGBUILD	2020-07-22 19:46:13 UTC (rev 664904)
@@ -1,8 +1,7 @@
 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
 # Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
 
-pkgbase=python-ujson
-pkgname=('python-ujson' 'python2-ujson')
+pkgname=python-ujson
 _pkgname=ultrajson
 pkgver=3.0.0
 pkgrel=1
@@ -10,7 +9,8 @@
 url="https://github.com/ultrajson/ultrajson"
 arch=('x86_64')
 license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pip' 'python2-pip')
+depends=('python')
+makedepends=('python-setuptools' 'python-pip')
 checkdepends=('python-six' 'python-pytest')
 source=(https://github.com/ultrajson/ultrajson/archive/$pkgver/$pkgname-$pkgver.tar.gz)
 sha512sums=('bd77fd9ba4c1f059216be46afced3db20b82b8637c5d41fe5ba04b9d63e636c422cae44a7fcee913dc40fc9d91367f2de97db757e4cb53b22ecb77b1c765e27d')
@@ -19,18 +19,11 @@
 prepare() {
   sed '/setup_requires=\["setuptools_scm"\],/d' -i ${_pkgname}-${pkgver}/setup.py
   sed "s/{version}/$pkgver/" ${_pkgname}-${pkgver}/python/version_template.h > ${_pkgname}-${pkgver}/python/version.h
-  cp -ra ${_pkgname}-${pkgver}{,-py2}
 }
 
 build() {
-  (cd ${_pkgname}-${pkgver}
-    python setup.py build -b ../buildpy3
-    ln -s ../buildpy3 build
-  )
-  (cd ${_pkgname}-${pkgver}-py2
-    python2 setup.py build -b ../buildpy2
-    ln -s ../buildpy2 build
-  )
+  cd ${_pkgname}-${pkgver}
+  python setup.py build
 }
 
 check() {
@@ -39,20 +32,11 @@
   PYTHONPATH="build/lib.linux-${CARCH}-${PYTHONVERSION}" pytest
 }
 
-package_python-ujson() {
-  depends=('python')
+package() {
   cd ${_pkgname}-${pkgver}
   python setup.py install --skip-build -O1 --root="${pkgdir}"
-  install -Dm 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-  install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+  install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
 }
 
-package_python2-ujson() {
-  depends=('python2')
-  cd ${_pkgname}-${pkgver}-py2
-  python2 setup.py install --skip-build -O1 --root="${pkgdir}"
-  install -Dm 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-  install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
-}
-
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list