diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-05-25 23:30:39 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-05-25 23:30:39 -0400 |
commit | 1785d3800f805be0074e735ec3c4b42a1cea70f0 (patch) | |
tree | ef6efaf7578cf6bae19f92b4e4934ddf3428c0a4 /libre/python-django-countries | |
parent | 200076f2bb86ebe7a541a71946d7723d52f10292 (diff) | |
download | abslibre-1785d3800f805be0074e735ec3c4b42a1cea70f0.tar.gz abslibre-1785d3800f805be0074e735ec3c4b42a1cea70f0.tar.bz2 abslibre-1785d3800f805be0074e735ec3c4b42a1cea70f0.zip |
Update libre/parabolaweb-utils and dependencies
Diffstat (limited to 'libre/python-django-countries')
-rw-r--r-- | libre/python-django-countries/PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/libre/python-django-countries/PKGBUILD b/libre/python-django-countries/PKGBUILD new file mode 100644 index 000000000..93e7c8a31 --- /dev/null +++ b/libre/python-django-countries/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +_pkgname=django-countries +pkgname=(python-$_pkgname python2-$_pkgname) +pkgver=2.1.2 +pkgdesc="Provides a country field for Django models" +url="http://bitbucket.org/smileychris/$_pkgname/" +license=('custom:MIT') + +conflicts=($_pkgname) + +pkgrel=3 +arch=(any) +makedepends=(python{,2}-{django,setuptools}) +source=(http://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz) +md5sums=('15e19fd70be1e8939f1bffcfe008e878') + +package_python-django-countries() { + depends=('python-django') + + cd "$srcdir/$_pkgname-$pkgver" + LC_ALL=en_US.UTF-8 python setup.py install --root="$pkgdir/" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-django-countries() { + depends=('python2-django') + replaces=($_pkgname) + + cd "$srcdir/$_pkgname-$pkgver" + python2 setup.py install --root="$pkgdir/" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} |