PKGBUILD 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Maintainer (Arch): Sven-Hendrik Haase <svenstaro@gmail.com>
  2. # Contributor: Alexander Rødseth <rodseth@gmail.com>
  3. # Contributor: Thomas Dziedzic < gostrc at gmail >
  4. # Contributor: Dan Serban
  5. # Contributor: Richard Murri
  6. # Maintainer: Sagar Acharya <sagar@hyperbola.info>
  7. pkgname=python-werkzeug
  8. pkgver=1.0.1
  9. pkgrel=1
  10. pkgdesc='Swiss Army knife of Python web development'
  11. url='https://werkzeug.palletsprojects.com/en/1.0.x/'
  12. arch=('any')
  13. license=('Modified-BSD')
  14. depends=('python')
  15. makedepends=('python-setuptools' 'quilt')
  16. #checkdepends=('python-pytest-timeout' 'python-requests' 'python-pytest-xprocess')
  17. source=("$pkgname-$pkgver.tar.gz::https://github.com/pallets/werkzeug/archive/${pkgver}.tar.gz"
  18. "series"
  19. "disable-sphinxcontrib-log_cabinet.patch"
  20. "drop_ubuntu_font.patch")
  21. sha512sums=('ba82120fb3e96e3a1334c6452d5ba1950fc016d2d147d643bbc2168ccec496f1dea799982ae8c578167155082c0bdbda5d56a23f64b4b6865f97e90e22df022e'
  22. '37f5d5c868c7de56237986386c70e38dbc202909a64c8235fc75b577d962c2d4dacc39438adcd192eab879dcb33434988a1a5b0057b204f81edd9c56dc5ebf1d'
  23. '43ca2214e643071c766e59ac7a70241046a8bddd320d7e4361a03e3bda2300b7be178500fe1e4f24108071d12b6ef3491f1c61f467abbac4d7c978b23fdb6fdc'
  24. 'e9fa103c99d89100d8c94c35c337aab9e13c5aa26b7b68767f1803b64470b54c1bc505dfd4098ab081d6a31121447390f881fb179bdc7e8dff658eb292ce51fb')
  25. prepare() {
  26. cd "werkzeug-$pkgver"
  27. mkdir ./patches
  28. cp ${srcdir}/series ./patches
  29. cp ${srcdir}/*.patch ./patches
  30. export QUILT_PATCHES=patches
  31. export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
  32. export QUILT_DIFF_ARGS='--no-timestamps'
  33. quilt push -av
  34. }
  35. build() {
  36. cd "werkzeug-$pkgver"
  37. python setup.py build
  38. }
  39. # check() {
  40. # cd "werkzeug-$pkgver"
  41. # PYTHONPATH="$PWD/build/lib" pytest
  42. # }
  43. package() {
  44. cd "werkzeug-$pkgver"
  45. python setup.py install --root="$pkgdir" --optimize=1
  46. install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  47. }