1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: Paulo Matias <matiasΘarchlinux-br·org>
3 # Contributor: Rafael G. Martins <rafael@rafaelmartins.com>
8 pkgdesc='Python library for arbitrary-precision floating-point arithmetic.'
10 url='http://code.google.com/p/mpmath'
13 makedepends=('python2-gmpy')
14 optdepends=('python2-gmpy: speed up computations')
15 source=("http://mpmath.googlecode.com/files/mpmath-${pkgver}.tar.gz")
16 md5sums=('e27af3a77bc39c8745d5d1c09a8247ac')
21 python2 setup.py build
27 python2 setup.py install \
31 install -D -m644 LICENSE \
32 ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
34 # fix mistake during install, upstream problem
35 sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' \
36 ${pkgdir}/usr/lib/python2.7/site-packages/mpmath/tests/runtests.py