summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEkin Dursun2018-06-07 09:50:49 +0300
committerEkin Dursun2018-06-07 09:50:49 +0300
commit13a3fe24a0afa3059c2c2179a7b3e267085343ba (patch)
tree4589dedb88c06c5534f5d5093bfe2960329279cb
parentbbf3c7764268113fd745163e46a451ac700d8c8f (diff)
downloadaur-13a3fe24a0afa3059c2c2179a7b3e267085343ba.tar.gz
Fix dependencies
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD9
2 files changed, 10 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 00c34056ef9..3ff1a787de3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,18 @@
pkgbase = python-spark-parser
pkgdesc = An Early-Algorithm Context-free grammar Parser
pkgver = 1.8.7
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/rocky/python-spark/
arch = any
license = MIT
makedepends = python-setuptools
- depends = python-click
+ makedepends = python2-setuptools
source = https://files.pythonhosted.org/packages/source/s/spark_parser/spark_parser-1.8.7.tar.gz
sha256sums = 4c5e6064afbb3c114749016d585b0e4f9222d4ffa97a1854c9ab70b25783ef48
pkgname = python-spark-parser
+ depends = python-click
pkgname = python2-spark-parser
+ depends = python2-click
diff --git a/PKGBUILD b/PKGBUILD
index 4fa0f218025..58537775e93 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,13 +4,12 @@
pkgbase=python-spark-parser
pkgname=('python-spark-parser' 'python2-spark-parser')
pkgver=1.8.7
-pkgrel=2
+pkgrel=3
pkgdesc="An Early-Algorithm Context-free grammar Parser"
arch=('any')
url="https://github.com/rocky/python-spark/"
license=('MIT')
-makedepends=('python-setuptools')
-depends=('python-click')
+makedepends=('python-setuptools' 'python2-setuptools')
_name='spark_parser'
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('4c5e6064afbb3c114749016d585b0e4f9222d4ffa97a1854c9ab70b25783ef48')
@@ -21,11 +20,15 @@ build() {
}
package_python-spark-parser() {
+ depends=('python-click')
+
cd "$srcdir/$_name-$pkgver"
python setup.py install --root="$pkgdir"
}
package_python2-spark-parser() {
+ depends=('python2-click')
+
cd "$srcdir/$_name-$pkgver"
python2 setup.py install --root="$pkgdir"
mv "$pkgdir/usr/bin/spark-parser-coverage" "$pkgdir/usr/bin/spark-parser-coverage2"