PKGBUILD 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. # Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
  2. _pkgname=django-jinja
  3. pkgname=(python-$_pkgname python2-$_pkgname)
  4. pkgver=1.3.3
  5. pkgdesc="Simple and nonobstructive jinja2 integration with Django"
  6. url="https://niwibe.github.io/django-jinja/"
  7. license=('custom:BSD3')
  8. pkgrel=2
  9. arch=(any)
  10. makedepends=(python{,2}-{django,jinja,setuptools})
  11. source=(https://files.pythonhosted.org/packages/76/c0/a38626bbf66ed2f2cadbb40c6436986110647dc410df27abdfd0decb99a8/django-jinja-1.3.3.tar.gz)
  12. sha256sums=('df0d5c2deabc33375f288c7ab5462e06c6ecd824ecfa27bfa8bcd5e4ccfb372a')
  13. package_python-django-jinja() {
  14. depends=(python-{django,jinja})
  15. cd "$srcdir/$_pkgname-$pkgver"
  16. python setup.py install --root="$pkgdir/" --optimize=1
  17. install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
  18. }
  19. package_python2-django-jinja() {
  20. depends=(python2-{django,jinja})
  21. cd "$srcdir/$_pkgname-$pkgver"
  22. python2 setup.py install --root="$pkgdir/" --optimize=1
  23. install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
  24. }