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

Felix Yan felixonmars at archlinux.org
Tue Sep 18 09:14:15 UTC 2018


    Date: Tuesday, September 18, 2018 @ 09:14:14
  Author: felixonmars
Revision: 334871

upgpkg: python-pyparsing 2.2.1-1

Modified:
  python-pyparsing/trunk/PKGBUILD

----------+
 PKGBUILD |   33 ++++++++++-----------------------
 1 file changed, 10 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-18 05:36:59 UTC (rev 334870)
+++ PKGBUILD	2018-09-18 09:14:14 UTC (rev 334871)
@@ -7,38 +7,25 @@
 
 pkgname=python-pyparsing
 pkgname=('python-pyparsing' 'python2-pyparsing')
-pkgver=2.2.0
-pkgrel=2
+pkgver=2.2.1
+pkgrel=1
 pkgdesc='General parsing module for Python'
 arch=('any')
-url='http://pyparsing.wikispaces.com/'
-makedepends=('python-setuptools' 'python2-setuptools' 'subversion')
+url='https://github.com/pyparsing/pyparsing/'
+makedepends=('python-setuptools' 'python2-setuptools')
 license=('MIT')
-source=("svn://svn.code.sf.net/p/pyparsing/code/tags/pyparsing_$pkgver")
-sha512sums=('SKIP')
+source=("https://github.com/pyparsing/pyparsing/archive/pyparsing_$pkgver.tar.gz")
+sha512sums=('13ea8632be1c06e09510dfffb28201922062a617f3cf6c204caa325bf0269c269ce891c14aee41bf24cd2aee77a4e2f00baa6e3656c290f88e898a10248d0c34')
 
-prepare() {
-  cp -a pyparsing_$pkgver{,-py2}
-
-  # :/
-  sed -i '1i#coding=utf-8' pyparsing_$pkgver-py2/src/unitTests.py
-}
-
 build() {
-  cd "$srcdir"/pyparsing_$pkgver/src
+  cd pyparsing-pyparsing_$pkgver
   python setup.py build
-
-  cd "$srcdir"/pyparsing_$pkgver-py2/src
   python2 setup.py build
 }
 
 check() {
-  export LC_CTYPE=en_US.UTF-8
-
-  cd "$srcdir"/pyparsing_$pkgver/src
+  cd pyparsing-pyparsing_$pkgver
   python unitTests.py
-
-  cd "$srcdir"/pyparsing_$pkgver-py2/src
   python2 unitTests.py
 }
 
@@ -45,7 +32,7 @@
 package_python-pyparsing() {
   depends=('python')
 
-  cd pyparsing_$pkgver/src
+  cd pyparsing-pyparsing_$pkgver
 
   python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
@@ -54,7 +41,7 @@
 package_python2-pyparsing() {
   depends=('python2')
 
-  cd pyparsing_$pkgver-py2/src
+  cd pyparsing-pyparsing_$pkgver
 
   python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE



More information about the arch-commits mailing list