PKGBUILD 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Maintainer: bill-auger <bill-auger@programmer.net>
  2. # Maintainer (aur): Simon Hanna <simon dot hanna AT serve-me DOT info>
  3. pkgbase='django-gravatar'
  4. pkgname=('python-django-gravatar' 'python2-django-gravatar')
  5. pkgver=1.4.2
  6. pkgrel=1
  7. pkgdesc="Includes helper methods for interacting with gravatars outside of template code"
  8. arch=(any)
  9. url=https://github.com/twaddington/django-gravatar
  10. license=('MIT')
  11. options=(!emptydirs)
  12. makedepends=('python-setuptools' 'python2-setuptools')
  13. source=(https://github.com/twaddington/${pkgbase}/archive/${pkgver}.tar.gz)
  14. sha256sums=('ee2a1e62ca894352a349c104997bc1d7452461ca4fc6d24e97cc5937315740e1')
  15. package_python-django-gravatar()
  16. {
  17. depends=('python-django')
  18. cd "${srcdir}/${pkgbase}-${pkgver}"
  19. install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  20. python setup.py install --root="$pkgdir/" --optimize=1
  21. }
  22. package_python2-django-gravatar()
  23. {
  24. depends=('python2-django')
  25. cd "${srcdir}/${pkgbase}-${pkgver}"
  26. install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  27. python2 setup.py install --root="$pkgdir/" --optimize=1
  28. }