[arch-commits] Commit in python-ujson/repos/community-x86_64 (PKGBUILD PKGBUILD)

Massimiliano Torromeo mtorromeo at archlinux.org
Fri Sep 18 07:32:58 UTC 2020


    Date: Friday, September 18, 2020 @ 07:32:58
  Author: mtorromeo
Revision: 709799

archrelease: copy trunk to community-x86_64

Added:
  python-ujson/repos/community-x86_64/PKGBUILD
    (from rev 709798, python-ujson/trunk/PKGBUILD)
Deleted:
  python-ujson/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   81 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 39 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-18 07:32:46 UTC (rev 709798)
+++ PKGBUILD	2020-09-18 07:32:58 UTC (rev 709799)
@@ -1,42 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-
-pkgname=python-ujson
-_pkgname=ultrajson
-pkgver=3.2.0
-pkgrel=1
-pkgdesc="Ultra fast JSON encoder and decoder for Python"
-url="https://github.com/ultrajson/ultrajson"
-arch=('x86_64')
-license=('BSD')
-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=('ec234917e59952390ec48e51137b896084e8be3312718bdd661536a453459ba29f7ae2141fee4b3135f2077fc43ee418407e459a6dc0be8833c6a3c2f1147d06')
-b2sums=('f68f95609894ff9413118a68179bf28fc23fcc5b89cf28f0500857e0759ce1678c6ba332bd0d4fb6bff6c35458e2a8702c533910526a1fbcf348809f3625a3e1')
-
-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
-}
-
-build() {
-  cd ${_pkgname}-${pkgver}
-  python setup.py build
-}
-
-check() {
-  cd ${_pkgname}-${pkgver}
-  local PYTHONVERSION="$(python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
-  PYTHONPATH="build/lib.linux-${CARCH}-${PYTHONVERSION}" pytest
-}
-
-package() {
-  cd ${_pkgname}-${pkgver}
-  python setup.py install --skip-build -O1 --root="${pkgdir}"
-  install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-}
-
-# vim: ts=2 sw=2 et:

Copied: python-ujson/repos/community-x86_64/PKGBUILD (from rev 709798, python-ujson/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-09-18 07:32:58 UTC (rev 709799)
@@ -0,0 +1,39 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=python-ujson
+_pkgname=ultrajson
+pkgver=3.2.0
+pkgrel=2
+pkgdesc="Ultra fast JSON encoder and decoder for Python"
+url="https://github.com/ultrajson/ultrajson"
+arch=('x86_64')
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools-scm' 'python-pip')
+checkdepends=('python-six' 'python-pytest')
+source=(https://github.com/ultrajson/ultrajson/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha512sums=('ec234917e59952390ec48e51137b896084e8be3312718bdd661536a453459ba29f7ae2141fee4b3135f2077fc43ee418407e459a6dc0be8833c6a3c2f1147d06')
+b2sums=('f68f95609894ff9413118a68179bf28fc23fcc5b89cf28f0500857e0759ce1678c6ba332bd0d4fb6bff6c35458e2a8702c533910526a1fbcf348809f3625a3e1')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd ${_pkgname}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pkgname}-${pkgver}
+  local PYTHONVERSION="$(python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
+  PYTHONPATH="build/lib.linux-${CARCH}-${PYTHONVERSION}" pytest
+}
+
+package() {
+  cd ${_pkgname}-${pkgver}
+  python setup.py install --skip-build -O1 --root="${pkgdir}"
+  install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list