summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 15 insertions, 17 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 868ac2c2cce4..e231d4170112 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,32 +1,30 @@
# Maintainer: Nicolas Pouillard <nicolas.pouillard@gmail.com>
# Contributor: Peter Simons <simons@cryp.to>
-pkgname=pyutil
-pkgver=3.2.0
+pkgbase=pyutil
+pkgname=('python2-pyutil' 'python-pyutil')
+pkgver=3.3.0
pkgrel=1
pkgdesc="general-purpose python library (used by tahoe-lafs)"
arch=('any')
url='https://pypi.python.org/pypi/pyutil'
license=('GPL2')
-depends=('python2' 'python2-simplejson' 'zbase32')
-makedepends=('python2-setuptools')
-checkdepends=('python2-twisted' 'python2-mock')
+makedepends=('python2-setuptools' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/p/pyutil/pyutil-${pkgver}.tar.gz")
-sha256sums=('910b83e70d83a6d44d5c44613c524725faeb55d297aeb3bd7623a16743689d1c')
+sha256sums=('8c4d4bf668c559186389bb9bce99e4b1b871c09ba252a756ccaacd2b8f401848')
-build(){
- cd "$srcdir/pyutil-$pkgver"
- python2 setup.py build
-}
+package_python2-pyutil() {
+ depends=('python2-simplejson' 'python2-zbase32')
+ replaces=('pyutil')
+ cd "$srcdir/pyutil-$pkgver"
+ python2 setup.py install --root="$pkgdir" --prefix='/usr' --optimize=1
+ rm -r "$pkgdir/usr/pyutil"
-BUILDENV+=(!check)
-check() {
- cd "$srcdir/pyutil-$pkgver"
- python2 setup.py test
}
-package(){
- cd "$srcdir/pyutil-$pkgver"
- python2 setup.py install --root="$pkgdir" --prefix='/usr' --optimize=1 --skip-build
+package_python-pyutil() {
+ depends=('python-simplejson' 'python-zbase32')
+ cd "$srcdir/pyutil-$pkgver"
+ python setup.py install --root="$pkgdir" --prefix='/usr' --optimize=1
rm -r "$pkgdir/usr/pyutil"
}