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

Alexander Rødseth arodseth at archlinux.org
Sun Nov 1 13:50:37 UTC 2015


    Date: Sunday, November 1, 2015 @ 14:50:37
  Author: arodseth
Revision: 145445

upgpkg: python-pyparsing 2.0.5-1

Modified:
  python-pyparsing/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++++++++++++++++++++-------
 1 file changed, 23 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-11-01 13:32:52 UTC (rev 145444)
+++ PKGBUILD	2015-11-01 13:50:37 UTC (rev 145445)
@@ -6,22 +6,38 @@
 # Contributor: Michael Krauss <hippodriver at gmx.net>
 
 pkgname=python-pyparsing
-pkgver=2.0.3
-pkgrel=2
+pkgname=('python-pyparsing' 'python2-pyparsing')
+pkgver=2.0.5
+pkgrel=1
 pkgdesc='General parsing module for Python'
 arch=('any')
-url='http://pyparsing.wikispaces.com'
+url='http://pyparsing.wikispaces.com/'
+makedepends=('python-setuptools' 'python2-setuptools')
 license=('MIT')
-depends=('python')
 source=("http://downloads.sourceforge.net/pyparsing/pyparsing-$pkgver.tar.gz")
-sha256sums=('06e729e1cbf5274703b1f47b6135ed8335999d547f9d8cf048b210fb8ebf844f')
+sha256sums=('58756bf33e989d84ac72142e4ca558cf10c778a3233edb0a86632f271409ba9e')
 
-package() {
-  cd "$srcdir/pyparsing-$pkgver"
+prepare() {
+  cp -r "pyparsing-$pkgver" py2
+}
 
+package_python-pyparsing() {
+  depends=('python')
+  cd "pyparsing-$pkgver"
+
   rm -rf build
   python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
+package_python2-pyparsing() {
+  depends=('python2')
+  cd py2
+
+  rm -rf build
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# getver: pypi.python.org/pypi/pyparsing
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list