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

Felix Yan felixonmars at archlinux.org
Fri Oct 21 18:19:26 UTC 2016


    Date: Friday, October 21, 2016 @ 18:19:25
  Author: felixonmars
Revision: 192885

upgpkg: python-simplejson 3.9.0-1

Modified:
  python-simplejson/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-21 18:11:52 UTC (rev 192884)
+++ PKGBUILD	2016-10-21 18:19:25 UTC (rev 192885)
@@ -5,8 +5,8 @@
 # Contributor: David Moore <davidm at sjsoft.com>
 
 pkgbase=python-simplejson
-pkgname=("$pkgbase" 'python2-simplejson')
-pkgver=3.8.2
+pkgname=('python-simplejson' 'python2-simplejson')
+pkgver=3.9.0
 pkgrel=1
 pkgdesc='Simple, fast, extensible JSON encoder/decoder for Python'
 license=('MIT')
@@ -13,9 +13,30 @@
 arch=('x86_64' 'i686')
 url='https://github.com/simplejson/simplejson'
 makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
 source=("git://github.com/simplejson/simplejson.git#tag=v$pkgver")
 md5sums=('SKIP')
 
+prepare() {
+  cp -a simplejson{,-py2}
+}
+
+build() {
+  cd "$srcdir"/simplejson
+  python setup.py build
+
+  cd "$srcdir"/simplejson-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/simplejson
+  python setup.py ptr
+
+  cd "$srcdir"/simplejson-py2
+  python2 setup.py ptr
+}
+
 package_python-simplejson() {
   depends=('python')
 
@@ -28,7 +49,7 @@
 package_python2-simplejson() {
   depends=('python2')
 
-  cd simplejson
+  cd simplejson-py2
   python2 setup.py install --root="$pkgdir"
   install -Dm644 "$srcdir/simplejson/LICENSE.txt" \
     "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
@@ -35,3 +56,4 @@
 }
 
 # vim:set ts=2 sw=2 et:
+  
\ No newline at end of file



More information about the arch-commits mailing list