PKGBUILD 942 B

1234567891011121314151617181920212223242526272829
  1. # Maintainer(Arch): Jelle van der Waa <jelle@vdwaa.nl>
  2. # Maintainer: Sagar Acharya <sagar@hyperbola.info>
  3. pkgbase=python-webencodings
  4. pkgname='python-webencodings'
  5. pkgver=0.5.1
  6. pkgrel=6
  7. arch=('any')
  8. url="https://github.com/gsnedders/python-webencodings"
  9. license=('Modified-BSD')
  10. makedepends=('python' 'python-setuptools')
  11. checkdepends=('python-nose')
  12. source=(https://github.com/gsnedders/python-webencodings/archive/v${pkgver}.tar.gz)
  13. sha512sums=('c5cb34f35fb5bc7ffb88c19eb3262dedbf6231c0ee2871dccbc0f9497193d8209fc20703d451a2bb41a5ff913e63abf7481f7a8f9886c953724e9cf71c34cb74')
  14. package_python-webencodings() {
  15. pkgdesc="This is a Python implementation of the WHATWG Encoding standard."
  16. depends=('python')
  17. cd ${pkgbase}-${pkgver}
  18. python3 setup.py install --root="${pkgdir}"
  19. install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
  20. }
  21. check() {
  22. cd ${pkgbase}-${pkgver}/webencodings
  23. nosetests tests.py
  24. }