yochananmarqos

python-sparklines

Jan 9th, 2021
134
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=python-sparklines
  2. _name=${pkgname#python-}
  3. pkgver=0.4.2
  4. pkgrel=1
  5. pkgdesc="Text-based sparkline command line mimicking those of Edward Tuft."
  6. arch=('any')
  7. url="https://github.com/deeplook/sparklines"
  8. license=('GPL3')
  9. depends=('python-future')
  10. makedepends=('python-setuptools')
  11. source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz")
  12. sha256sums=('7c33fd6dc8b277b1fd729b31428df58a785c68be58202f439128e815f1dcae88')
  13.  
  14. build() {
  15.     cd "$_name-$pkgver"
  16.     python setup.py build
  17. }
  18.  
  19. package() {
  20.     cd "$_name-$pkgver"
  21.     export PYTHONHASHSEED=0
  22.     python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  23.  
  24.     local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
  25.     rm -rf "$pkgdir$site_packages/test"
  26. }
RAW Paste Data