PKGBUILD 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Maintainer (Arch): Sven-Hendrik Haase <svenstaro@gmail.com>
  2. # Contributor: Alexander Rødseth <rodseth@gmail.com>
  3. # Maintainer: Sagar Acharya <sagar@hyperbola.info>
  4. pkgname=python-itsdangerous
  5. pkgver=1.1.0
  6. pkgrel=1
  7. pkgdesc='Various helpers to pass trusted data to untrusted environments'
  8. arch=('any')
  9. url="https://itsdangerous.palletsprojects.com/en/1.1.x/"
  10. license=('Modified-BSD')
  11. depends=('python')
  12. makedepends=('python-setuptools' 'quilt')
  13. source=("$pkgname-$pkgver.tar.gz::https://github.com/pallets/itsdangerous/archive/refs/tags/${pkgver}.tar.gz"
  14. "series"
  15. "no-intersphinx-plugin-in-doc.patch")
  16. sha512sums=('6a2c4931050137839bd4ae6847f5f9a4b8b88280a6c2e45192bb8bfd9b2a9e0e997c2fcbdca184d6e110f0765c33155546326875dfb30d58ac064a087a8d948e'
  17. '453afd0e15cba14c463b0f1bc7d008590a7eaab2ef5006d61fb4a4306ff29cbe9a3ffbce48b90c38d88903600ed7f432b2db6371d8838065ce98b159a3d7b2a5'
  18. 'def80a4306dce1d003359c2deb2bab064838cd4ce3a020829cbcdc2bff3becdfb36bacb4fbf930dab0dee7b6b4338a28eb333f8ed84ba575a9bd2fd1463edcfa')
  19. prepare() {
  20. cd "itsdangerous-$pkgver"
  21. mkdir ./patches
  22. cp ${srcdir}/series ./patches
  23. cp ${srcdir}/*.patch ./patches
  24. export QUILT_PATCHES=patches
  25. export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
  26. export QUILT_DIFF_ARGS='--no-timestamps'
  27. quilt push -av
  28. }
  29. package() {
  30. cd "itsdangerous-$pkgver"
  31. python setup.py install --root="$pkgdir" --optimize=1
  32. install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  33. }