updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / python2-mpmath / PKGBUILD
blob8a19c7c9f828558b5f26ff60e96db4556948035d
1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: Paulo Matias <matiasΘarchlinux-br·org>
3 # Contributor: Rafael G. Martins <rafael@rafaelmartins.com>
5 pkgname=python2-mpmath
6 pkgver=0.17
7 pkgrel=1
8 pkgdesc='Python library for arbitrary-precision floating-point arithmetic.'
9 arch=('any')
10 url='http://code.google.com/p/mpmath'
11 license=('BSD')
12 depends=('python2')
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')
18 build() {
19   cd mpmath-${pkgver}
21   python2 setup.py build
24 package() {
25   cd mpmath-${pkgver}
27   python2 setup.py install \
28     --root ${pkgdir} \
29     --optimize=1
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