Guest User

Updated PKGBUILD for python-brewer2mpl

a guest
Sep 6th, 2016
98
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributor:  Kyle Meyer <kyle@kyleam.com>
  2.  
  3. pkgbase=python-brewer2mpl
  4. pkgname=(python-brewer2mpl python2-brewer2mpl)
  5. _libname=${pkgbase/python-/}
  6. pkgver=1.4.1
  7. pkgrel=1
  8. pkgdesc='Connect colorbrewer2.org color maps to Python and matplotlib'
  9. arch=('any')
  10. url='https://github.com/jiffyclub/brewer2mpl/wiki'
  11. license=('MIT')
  12. source=("https://pypi.python.org/packages/source/b/brewer2mpl/brewer2mpl-$pkgver.tar.gz")
  13. md5sums=('f8cd1fbb9f5d836a3a095b1ca9d58fc2')
  14.  
  15. package_python-brewer2mpl() {
  16.   depends=('python')
  17.   optdepends=('python-matplotlib: get matplotlib color maps')
  18.   cd "$srcdir/$_libname-$pkgver"
  19.   python setup.py install --root="$pkgdir" --optimize=1
  20. }
  21.  
  22. package_python2-brewer2mpl() {
  23.   depends=('python2')
  24.   optdepends=('python2-matplotlib: get matplotlib color maps')
  25.   cd "$srcdir/$_libname-$pkgver"
  26.   python2 setup.py install --root="$pkgdir" --optimize=1
  27. }
RAW Paste Data