PKGBUILD 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Maintainer (AUR): Eliot Whalan <ewhal at pantsu dot cat>:
  2. # Contrbutor (AUR): Michael Düll <mail@akurei.me>
  3. # Contributor: fauno <fauno@parabola.nu>
  4. # Contrbutor: bill-auger <bill-auger@programmer.net>
  5. pkgname=python2-potr
  6. _srcname=pure-python-otr
  7. pkgver=1.0.2
  8. pkgrel=1
  9. pkgdesc="This is a pure Python2 OTR implementation; it does not bind to libotr."
  10. arch=(any)
  11. url=https://github.com/afflux/pure-python-otr
  12. license=('LGPL')
  13. depends=('python2' 'python2-crypto')
  14. source=(${_srcname}-${pkgver}.tar.gz::https://github.com/python-otr/${_srcname}/archive/${pkgver}.tar.gz)
  15. sha512sums=('e35f6ea7db64af92a966b22857a1a670a1c930aa01a1bc88d5ba7e4ba62100808c193fbccbbde4d29039610a383b374c95a090fd98b208890c721e01bba87fb8')
  16. prepare()
  17. {
  18. cd "$srcdir"/${_srcname}-${pkgver}
  19. for file in $(find . -name '*.py' -print); do
  20. sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' "${file}"
  21. sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' "${file}"
  22. done
  23. }
  24. package()
  25. {
  26. cd "$srcdir"/${_srcname}-${pkgver}
  27. python2 ./setup.py install --root="${pkgdir}"/
  28. }