summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-01-22 18:51:44 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-01-22 18:51:44 +0100
commit8d680e84ed4b28d3cfddc8bcd730214321e8a530 (patch)
treefe9d184f9ab21ff00c85837b443a47aed8a2b819 /pcr
parentc2842b8af95d932de0200bd1365800f2deb80e14 (diff)
downloadabslibre-8d680e84ed4b28d3cfddc8bcd730214321e8a530.tar.gz
abslibre-8d680e84ed4b28d3cfddc8bcd730214321e8a530.tar.bz2
abslibre-8d680e84ed4b28d3cfddc8bcd730214321e8a530.zip
pcr/pyutil: updated to 2.0.0
Diffstat (limited to 'pcr')
-rw-r--r--pcr/pyutil/PKGBUILD44
1 files changed, 25 insertions, 19 deletions
diff --git a/pcr/pyutil/PKGBUILD b/pcr/pyutil/PKGBUILD
index 8bc264382..fbeee059e 100644
--- a/pcr/pyutil/PKGBUILD
+++ b/pcr/pyutil/PKGBUILD
@@ -1,28 +1,34 @@
-# Maintainer (Arch): Nicolas Pouillard <nicolas.pouillard@gmail.com>
-# Contributor (Arch): Peter Simons <simons@cryp.to>
+# Maintainer (AUR): Nicolas Pouillard <nicolas.pouillard@gmail.com>
+# Contributor (AUR): Peter Simons <simons@cryp.to>
+
+# parabola changes and rationale:
+# no changes.
+
pkgname=pyutil
-pkgver=1.9.4
-pkgrel=2
+pkgver=2.0.0
+pkgrel=1
pkgdesc="general-purpose python library (used by tahoe-lafs)"
arch=('any')
-url='http://pypi.python.org/pypi/pyutil'
-license=('GPL2' 'custom')
-depends=('python2')
-makedepends=('setuptools' 'darcsver' 'setuptools_darcs' 'python2-simplejson') # 'zbase32') # missing: setuptools_trial
-source=( http://pypi.python.org/packages/source/p/pyutil/pyutil-$pkgver.tar.gz )
-md5sums=('af51cf296b574112e115c9dfba51464d')
+url='https://pypi.python.org/pypi/pyutil'
+license=('GPL2')
+depends=('python2' 'python2-simplejson' 'zbase32' 'python2-twisted')
+makedepends=('python2-setuptools')
+source=("https://pypi.python.org/packages/source/p/pyutil/pyutil-${pkgver}.tar.gz")
+md5sums=('025a06985691133479500139a3729909')
build(){
- cd "$srcdir/$pkgname-$pkgver"
- python2 setup.py build
- python2 setup.py trial
+ cd "$srcdir/pyutil-$pkgver"
+ python2 setup.py build
}
-package(){
- cd "$srcdir/$pkgname-$pkgver"
- python2 setup.py install --root="$pkgdir"
-
- install -d $pkgdir/usr/share/licenses/$pkgname/
- install -m644 COPYING* $pkgdir/usr/share/licenses/$pkgname/
+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
+ rm -r "$pkgdir/usr/pyutil"
}