PKGBUILD 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. # Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
  2. _pkgname=django-countries
  3. pkgname=(python-$_pkgname python2-$_pkgname)
  4. pkgver=3.3
  5. pkgdesc="Provides a country field for Django models"
  6. url="https://github.com/SmileyChris/django-countries"
  7. license=('custom:MIT')
  8. conflicts=($_pkgname)
  9. pkgrel=4
  10. arch=(any)
  11. makedepends=(python{,2}-{django,setuptools})
  12. source=(https://files.pythonhosted.org/packages/a4/86/7948d078aa5220479c89480b83dfca449d627cdefcf1d70adcfbe9a21dc0/django-countries-3.3.tar.gz)
  13. sha256sums=('11827070ebcf201d22ea531aa90e18146ca89580bd1897a132eb8afbc6b35b7d')
  14. package_python-django-countries() {
  15. depends=('python-django')
  16. cd "$srcdir/$_pkgname-$pkgver"
  17. LC_ALL=en_US.UTF-8 python setup.py install --root="$pkgdir/" --optimize=1
  18. install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
  19. }
  20. package_python2-django-countries() {
  21. depends=('python2-django')
  22. replaces=($_pkgname)
  23. cd "$srcdir/$_pkgname-$pkgver"
  24. python2 setup.py install --root="$pkgdir/" --optimize=1
  25. install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
  26. }