summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEkin Dursun2018-06-07 09:40:12 +0300
committerEkin Dursun2018-06-07 09:40:12 +0300
commitbbf3c7764268113fd745163e46a451ac700d8c8f (patch)
treef43c543b7947ad5365fcaf9d16921d57887cd331
parent46fb560c57066dd5a3ea68de6d1d0b0470609109 (diff)
downloadaur-bbf3c7764268113fd745163e46a451ac700d8c8f.tar.gz
Add Python 2 package
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD13
2 files changed, 13 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a9e2c2ffa73..00c34056ef9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-spark-parser
pkgdesc = An Early-Algorithm Context-free grammar Parser
pkgver = 1.8.7
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/rocky/python-spark/
arch = any
license = MIT
@@ -12,3 +12,5 @@ pkgbase = python-spark-parser
pkgname = python-spark-parser
+pkgname = python2-spark-parser
+
diff --git a/PKGBUILD b/PKGBUILD
index 67b7eee9ba7..4fa0f218025 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,10 @@
# Maintainer: Ekin Dursun <ekindursun@gmail.com>
# Contributor: Oliver Mangold omangold at gmail dot com
-pkgname=python-spark-parser
+pkgbase=python-spark-parser
+pkgname=('python-spark-parser' 'python2-spark-parser')
pkgver=1.8.7
-pkgrel=1
+pkgrel=2
pkgdesc="An Early-Algorithm Context-free grammar Parser"
arch=('any')
url="https://github.com/rocky/python-spark/"
@@ -19,7 +20,13 @@ build() {
python setup.py build
}
-package() {
+package_python-spark-parser() {
cd "$srcdir/$_name-$pkgver"
python setup.py install --root="$pkgdir"
}
+
+package_python2-spark-parser() {
+ cd "$srcdir/$_name-$pkgver"
+ python2 setup.py install --root="$pkgdir"
+ mv "$pkgdir/usr/bin/spark-parser-coverage" "$pkgdir/usr/bin/spark-parser-coverage2"
+}