summaryrefslogtreecommitdiff
path: root/pcr/python-pyspf
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/python-pyspf')
-rw-r--r--pcr/python-pyspf/PKGBUILD23
1 files changed, 8 insertions, 15 deletions
diff --git a/pcr/python-pyspf/PKGBUILD b/pcr/python-pyspf/PKGBUILD
index 8048baa29..91c31bba3 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-pyspf python2-pyspf)
+pkgname=python-$_pkgname
_basever=2.0.12
_patchver=t
_pkgver=${_basever}${_patchver}
@@ -14,22 +14,15 @@ license=('PSF')
source=("https://pypi.python.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$_pkgver.tar.gz")
md5sums=('c83143ad79074bf8c80235748a8a698f')
-pkgrel=3
+pkgrel=4
arch=('any')
-makedepends=('python' 'python2')
-
-package_python-pyspf() {
- depends=('python python-py3dns')
- optdepends=('python-authres: Return RFC 5451 Authentication Results headers')
+depends=('python-py3dns')
+makedepends=('python-setuptools')
+optdepends=('python-authres: Return RFC 5451 Authentication Results headers')
+conflicts=(python2-pyspf)
+package() {
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
+ python setup.py install --root="$pkgdir" --optimize=1
}