diff options
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/python-pyutil/PKGBUILD | 27 | ||||
-rw-r--r-- | pcr/pyutil/PKGBUILD | 34 |
2 files changed, 27 insertions, 34 deletions
diff --git a/pcr/python-pyutil/PKGBUILD b/pcr/python-pyutil/PKGBUILD new file mode 100644 index 000000000..964c8fc4a --- /dev/null +++ b/pcr/python-pyutil/PKGBUILD @@ -0,0 +1,27 @@ +# repolint: reason=asdeps + +_pkgname=pyutil +pkgname=(python{,2}-$_pkgname) +pkgver=3.1.0 +pkgrel=1 +pkgdesc="a collection of utilities for Python programmers" +arch=(any) +url="https://pypi.python.org/pypi/pyutil" +license=(GPL2) + +makedepends=(python{,2}-setuptools) +checkdepends=(python{,2}-twisted python{,2}-mock) +source=("https://pypi.python.org/packages/source/p/pyutil/pyutil-${pkgver}.tar.gz") +sha256sums=('8e254aa0a3b59e90515f7bca7ebc467b20a8d3fd2e26b63d196655c075da8d38') + +_package() { + depends=($1) + optdepends=($1-simplejson $1-zbase32) + cd "$srcdir"/$_pkgname-$pkgver + $1 setup.py install --root="$pkgdir" + rm -r "$pkgdir"/usr/pyutil +} + +for pkg in "${pkgname[@]}"; do + eval "package_$pkg () { _package ${pkg%%-*}; }" +done diff --git a/pcr/pyutil/PKGBUILD b/pcr/pyutil/PKGBUILD deleted file mode 100644 index fbeee059e..000000000 --- a/pcr/pyutil/PKGBUILD +++ /dev/null @@ -1,34 +0,0 @@ -# Maintainer (AUR): Nicolas Pouillard <nicolas.pouillard@gmail.com> -# Contributor (AUR): Peter Simons <simons@cryp.to> - -# parabola changes and rationale: -# no changes. - -pkgname=pyutil -pkgver=2.0.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' 'python2-twisted') -makedepends=('python2-setuptools') -source=("https://pypi.python.org/packages/source/p/pyutil/pyutil-${pkgver}.tar.gz") -md5sums=('025a06985691133479500139a3729909') - -build(){ - cd "$srcdir/pyutil-$pkgver" - python2 setup.py build -} - -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" -} |