updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / python-bigfloat-hg / PKGBUILD
blobf242d7ef127e9765d4f72692a3d8defbdf891c9b
1 # Contributor: Jacek Roszkowski <j.roszk@gmail.com>
2 pkgname=python-bigfloat-hg
3 pkgver=228
4 pkgrel=1
5 pkgdesc="Arbitrary-precision correctly-rounded floating point arithmetic in Python, via the MPFR library."
6 arch=('any')
7 url="http://packages.python.org/bigfloat/"
8 license=('custom')
9 makedepends=('mercurial')
10 depends=('python' 'gmp' 'mpfr')
11 noextract=()
12 md5sums=() #generate with 'makepkg -g'
14 _hgroot="http://bitbucket.org/dickinsm/"
15 _hgrepo="bigfloat"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to Mercurial server...."
21   if [ -d $_hgrepo ] ; then
22     cd $_hgrepo
23     hg pull -u || return 1
24     msg "The local files are updated."
25   else
26     hg clone $_hgroot $_hgrepo || return 1
27   fi
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"
36   #
37   # BUILD HERE
38   #
39   python setup.py install \
40     --prefix=/usr \
41     --root=$pkgdir \
42     || return 1
44   install -m644 -D "Academic Free License 3.0.html" $pkgdir/usr/share/licenses/$pkgname/LICENSE