PKGBUILD 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # $Id$
  2. # Maintainer: Luke Shumaker <lukeshu@lukeshu.com>
  3. # Maintainer (arch:python-markupsafe): Felix Yan <felixonmars@archlinux.org>
  4. # Contributor: Ionut Biru <ibiru@archlinux.org>
  5. # Contributor: Alex Anthony <alex.anthony28991@gmail.com>
  6. # Rational for inclusion in [libre]:
  7. # - Used by libre/parabolaweb-utils
  8. pkgname=('python-markupsafe' 'python2-markupsafe')
  9. pkgname=("${pkgname[@]/%/0}")
  10. pkgver=0.23
  11. pkgrel=4
  12. pkgrel+=.1
  13. pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python"
  14. arch=('i686' 'x86_64')
  15. arch+=('armv7h')
  16. url="http://pypi.python.org/pypi/MarkupSafe"
  17. license=('custom')
  18. makedepends=('python-setuptools' 'python2-setuptools')
  19. source=("https://files.pythonhosted.org/packages/source/M/MarkupSafe/MarkupSafe-${pkgver}.tar.gz")
  20. sha512sums=('4f1fd91ced5e7119584b56cf7b69cfe6fdd9613bd77412368a38e9ef5d1011ba5c76d1d3a0da3d60f9f474627e6c8c8b613a80a668b32d212f09072f8b1f5b28')
  21. prepare() {
  22. cp -a MarkupSafe-${pkgver} python2-MarkupSafe-${pkgver}
  23. }
  24. build() {
  25. cd "${srcdir}/MarkupSafe-${pkgver}"
  26. python setup.py build
  27. cd "${srcdir}/python2-MarkupSafe-${pkgver}"
  28. python2 setup.py build
  29. }
  30. check() {
  31. cd "${srcdir}/MarkupSafe-${pkgver}"
  32. python setup.py test
  33. cd "${srcdir}/python2-MarkupSafe-${pkgver}"
  34. python2 setup.py test
  35. }
  36. package_python-markupsafe0() {
  37. depends=('python')
  38. provides=("python-markupsafe=$pkgver")
  39. conflicts=('python-markupsafe')
  40. cd MarkupSafe-${pkgver}
  41. python setup.py install --root="${pkgdir}" --optimize=1
  42. install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
  43. }
  44. package_python2-markupsafe0() {
  45. depends=('python2')
  46. provides=("python2-markupsafe=$pkgver")
  47. conflicts=('python2-markupsafe')
  48. cd python2-MarkupSafe-${pkgver}
  49. python2 setup.py install --root="${pkgdir}" --optimize=1
  50. install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
  51. }