1 # Maintainer: Mitchel Humpherys <mitch.special@gmail.com>
2 # Contributor: Hector Martinez-Seara Monne <hseara##a##gmail##.##com>
4 pkgname=python-matplotlib-git
7 pkgdesc="matplotlib python library (including python3 support)"
8 url="https://github.com/matplotlib/matplotlib"
11 depends=('python-numpy' 'python-dateutil' 'python-pytz' 'freetype2' 'libpng')
13 replaces=('python3-matplotlib-git')
14 #provides=('python-matplotlib') # Conflicts with python2-matplotlib
16 md5sums=('9e74e90b164757a1fd327680cdf4486e')
18 _gitroot='https://github.com/matplotlib/matplotlib.git'
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"
28 git clone $_gitroot $_gitname --depth=1
32 cp "${startdir}/setup.cfg" "${srcdir}/${_gitname}/"
35 install -D -m644 LICENSE/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
39 cd "$srcdir/$_gitname"
40 python setup.py install --prefix=$pkgdir/usr --optimize=1