cmsigler

python-pyautogui-git_PKGBUILD.patch

Oct 22nd, 2020
30
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- a/PKGBUILD 2020-10-22 12:17:05.718520235 -0400
  2. +++ b/PKGBUILD 2020-10-22 11:43:40.919517563 -0400
  3. @@ -1,26 +1,44 @@
  4. # Maintainer: Jose Riha <jose1711 gmail com>
  5. +# Contributor: Mark Wagie <mark dot wagie at tutanota dot com>
  6. +# Contributor: Clemmitt M. Sigler <cmsigler dot online at gmail dot com>
  7. +# Contributor: xantares
  8. pkgname=python-pyautogui-git
  9. -pkgver=r197.1256267
  10. +_fullpkgname=${pkgname%-git}
  11. +_pkgname=${_fullpkgname#python-}
  12. +pkgver=r361.a62027c
  13. pkgrel=1
  14. pkgdesc="A cross-platform GUI automation Python module for human beings (git)"
  15. arch=('any')
  16. url="https://github.com/asweigart/pyautogui"
  17. license=('BSD')
  18. -depends=('python-xlib' 'python-pillow' 'python-pyscreeze' 'python-pytweening' 'python-pymsgbox')
  19. -makedepends=('git' 'python-setuptools')
  20. +depends=('python-xlib' 'python-pillow' 'python-pymsgbox' 'python-pyscreeze' 'python-pytweening')
  21. + # 'python-pygetwindow' - Not compatible with Linux yet
  22. +makedepends=('python-setuptools' 'git')
  23. provides=('python-pyautogui')
  24. conflicts=('python-pyautogui')
  25. -source=("${pkgname}"::'git+https://github.com/jose1711/pyautogui.git')
  26. -md5sums=('SKIP')
  27. +source=("git+https://github.com/asweigart/${_pkgname}.git")
  28. +sha256sums=('SKIP')
  29.  
  30. pkgver() {
  31. - cd "$srcdir/${pkgname}"
  32. - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  33. + ( set -o pipefail
  34. + cd "$srcdir/${_pkgname}"
  35. + git describe --long --tags 2>/dev/null |
  36. + sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
  37. + printf "r%s.%s" \
  38. + "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  39. + )
  40. +}
  41. +
  42. +build() {
  43. + cd "${srcdir}/${_pkgname}"
  44. + python setup.py build
  45. }
  46.  
  47. package() {
  48. - cd "$srcdir/${pkgname}"
  49. - python setup.py install --root="$pkgdir/" --optimize=1
  50. + cd "${srcdir}/${_pkgname}"
  51. + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
  52. +
  53. + install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname"
  54. }
  55.  
  56. # vim:set ts=2 sw=2 et:
  57.  
RAW Paste Data