summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/python-pyspf/PKGBUILD23
1 files changed, 15 insertions, 8 deletions
diff --git a/pcr/python-pyspf/PKGBUILD b/pcr/python-pyspf/PKGBUILD
index 4ed8be779..8048baa29 100644
--- a/pcr/python-pyspf/PKGBUILD
+++ b/pcr/python-pyspf/PKGBUILD
@@ -3,7 +3,7 @@
# Contributor (AUR): Samed Beyribey <ras0ir@eventualis.org>
_pkgname=pyspf
-pkgname=python-$_pkgname
+pkgname=(python-pyspf python2-pyspf)
_basever=2.0.12
_patchver=t
_pkgver=${_basever}${_patchver}
@@ -14,15 +14,22 @@ license=('PSF')
source=("https://pypi.python.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$_pkgver.tar.gz")
md5sums=('c83143ad79074bf8c80235748a8a698f')
-pkgrel=2
+pkgrel=3
arch=('any')
-depends=('python-py3dns')
-makedepends=('python-setuptools')
-optdepends=('python-authres: Return RFC 5451 Authentication Results headers')
-conflicts=(python2-pyspf)
+makedepends=('python' 'python2')
-package() {
- cd "$srcdir/$_pkgname-${_basever}"
+package_python-pyspf() {
+ depends=('python python-py3dns')
+ optdepends=('python-authres: Return RFC 5451 Authentication Results headers')
+ cd "$srcdir/$_pkgname-${_basever}"
python setup.py install --root="$pkgdir" --optimize=1
}
+
+package_python2-pyspf() {
+ depends=('python2 python2-pydns python2-ipaddr')
+ optdepends=('python2-authres: Return RFC 5451 Authentication Results headers')
+
+ cd "$srcdir/$_pkgname-${_basever}"
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}