yochananmarqos

python-cutie

Apr 5th, 2021
799
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=python-cutie
  2. _name=${pkgname#python-}
  3. pkgver=0.2.2
  4. pkgrel=1
  5. pkgdesc="Command line User Tools for Input Easification"
  6. arch=('any')
  7. url="https://github.com/Kamik423/cutie"
  8. license=('MIT')
  9. depends=('python' 'python-colorama' 'python-readchar')
  10. makedepends=('python-setuptools')
  11. source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz"
  12.         "https://raw.githubusercontent.com/Kamik423/cutie/master/license.md"
  13.         "https://raw.githubusercontent.com/Kamik423/cutie/master/readme.md")
  14. sha256sums=('5e38711dedc2efec4f62290f30bc9ad4b489de33fe2d84efafb3611971bc4a91'
  15.             'b9a6af81b2d9c1ee676c80ba084e15a8d4d81b108ec01e9464dd73aa5f6e55ae'
  16.             '3252f16614750de229409cb373108d496f434287b85024eceb4948185e393b80')
  17.  
  18. prepare() {
  19.   cd "$_name-$pkgver"
  20.  
  21.   # readme.md missing in PyPI tarball
  22.   ln -s "$srcdir/readme.md" readme.md
  23. }
  24.  
  25. build() {
  26.   cd "$_name-$pkgver"
  27.   python setup.py build
  28. }
  29.  
  30. package() {
  31.   cd "$_name-$pkgver"
  32.   export PYTHONHASHSEED=0
  33.   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  34.  
  35.   install -Dm644 "$srcdir/license.md" -t "$pkgdir/usr/share/licenses/$pkgname"
  36. }
RAW Paste Data