1 # Contributor: Jacek Roszkowski <j.roszk@gmail.com>
2 pkgname=python-bigfloat-hg
5 pkgdesc="Arbitrary-precision correctly-rounded floating point arithmetic in Python, via the MPFR library."
7 url="http://packages.python.org/bigfloat/"
9 makedepends=('mercurial')
10 depends=('python' 'gmp' 'mpfr')
12 md5sums=() #generate with 'makepkg -g'
14 _hgroot="http://bitbucket.org/dickinsm/"
19 msg "Connecting to Mercurial server...."
21 if [ -d $_hgrepo ] ; then
23 hg pull -u || return 1
24 msg "The local files are updated."
26 hg clone $_hgroot $_hgrepo || return 1
29 msg "Mercurial checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_hgrepo-build"
33 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
34 cd "$srcdir/$_hgrepo-build"
39 python setup.py install \
44 install -m644 -D "Academic Free License 3.0.html" $pkgdir/usr/share/licenses/$pkgname/LICENSE