updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / python-matplotlib-git / PKGBUILD
bloba7b0d9050cd6022c6c6a396b0cd6b679b8675c34
1 # Maintainer: Mitchel Humpherys <mitch.special@gmail.com>
2 # Contributor: Hector Martinez-Seara Monne <hseara##a##gmail##.##com>
4 pkgname=python-matplotlib-git
5 pkgver=20111209
6 pkgrel=2
7 pkgdesc="matplotlib python library (including python3 support)"
8 url="https://github.com/matplotlib/matplotlib"
9 arch=('any')
10 license=('custom')
11 depends=('python-numpy' 'python-dateutil' 'python-pytz' 'freetype2' 'libpng')
12 makedepends=('git')
13 replaces=('python3-matplotlib-git')
14 #provides=('python-matplotlib') # Conflicts with python2-matplotlib
15 source=('setup.cfg')
16 md5sums=('9e74e90b164757a1fd327680cdf4486e')
18 _gitroot='https://github.com/matplotlib/matplotlib.git'
19 _gitname='matplotlib'
21 build() {
22   cd "$srcdir"
23   msg "Connecting to git server..."
24   if [[ -d $_gitname ]]; then
25         cd $_gitname && git pull origin
26         msg "The local files are up-to-date"
27   else
28         git clone $_gitroot $_gitname --depth=1
29         cd $_gitname
30   fi
32   cp "${startdir}/setup.cfg" "${srcdir}/${_gitname}/"
34   python setup.py build
35   install -D -m644 LICENSE/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
38 package() {
39   cd "$srcdir/$_gitname"
40   python setup.py install --prefix=$pkgdir/usr --optimize=1