Advertisement
Guest User

PKGBUILD for python-prompt_toolkit-2

a guest
Nov 6th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.70 KB | None | 0 0
  1. # Maintainer: asm0dey <pavel.finkelshtein+AUR@gmail.com>
  2.  
  3. pkgbase="python-prompt_toolkit-2"
  4. pkgname=("python-prompt_toolkit-2" "python2-prompt_toolkit-2")
  5. pkgver=2.0.7
  6. pkgrel=1
  7. pkgdesc="Library for building powerful interactive command line applications in Python"
  8. url="https://github.com/jonathanslenders/python-prompt-toolkit"
  9. arch=(any)
  10. license=('BSD')
  11. makedepends=('python-distribute')
  12. source=($pkgname-$pkgver.tar.gz::https://github.com/jonathanslenders/python-prompt-toolkit/archive/$pkgver.tar.gz)
  13. md5sums=('43fa46c2fd484d221db2637ef545c944')
  14.  
  15. prepare() {
  16.     cp -a "${srcdir}/python-prompt-toolkit-${pkgver}" "${srcdir}/python2-prompt-toolkit-${pkgver}"
  17. }
  18.  
  19. build() {
  20.     cd "${srcdir}/python-prompt-toolkit-${pkgver}"
  21.     python setup.py build
  22.     cd "${srcdir}/python2-prompt-toolkit-${pkgver}"
  23.     python2 setup.py build
  24. }
  25.  
  26. package_python-prompt_toolkit-2() {
  27.     depends=(
  28.         'python'
  29.         'python-six>=1.9.0'
  30.         'python-wcwidth'
  31.     )
  32.     provides=('python-prompt_toolkit-2')
  33.     conflicts=('python-prompt_toolkit')
  34.     cd "${srcdir}/python-prompt-toolkit-${pkgver}"
  35.     python setup.py install --skip-build --root="${pkgdir}" --optimize=1
  36.     install -D --mode 644 --target-directory "$pkgdir/usr/share/licenses/$pkgname" LICENSE
  37. }
  38.  
  39. package_python2-prompt_toolkit-2() {
  40.     depends=(
  41.         'python2'
  42.         'python-six>=1.9.0'
  43.         'python2-wcwidth'
  44.     )
  45.     provides=('python2-prompt_toolkit-2')
  46.     conflicts=('python2-prompt_toolkit')
  47.     cd "${srcdir}/python2-prompt-toolkit-${pkgver}"
  48.     python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1
  49.     install -D --mode 644 --target-directory "$pkgdir/usr/share/licenses/$pkgname" LICENSE
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement