summaryrefslogtreecommitdiff
path: root/libre/python-django-countries/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-17 22:06:26 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-17 22:06:26 +0100
commitb043fac33a3b84bbd0d1a07a968d398c8564a1ad (patch)
treebac2dcd5bc6dadb68409298c07bde4fd4b830a32 /libre/python-django-countries/PKGBUILD
parentff6f8de3652a1129ad3bf4db540d0eb7cdc66de1 (diff)
downloadabslibre-b043fac33a3b84bbd0d1a07a968d398c8564a1ad.tar.gz
abslibre-b043fac33a3b84bbd0d1a07a968d398c8564a1ad.tar.bz2
abslibre-b043fac33a3b84bbd0d1a07a968d398c8564a1ad.zip
Revert "libre/python-django-countries: unused. removed"
This reverts commit fdbf831d2e99810134305d53adc819e13fe31262.
Diffstat (limited to 'libre/python-django-countries/PKGBUILD')
-rw-r--r--libre/python-django-countries/PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/libre/python-django-countries/PKGBUILD b/libre/python-django-countries/PKGBUILD
new file mode 100644
index 000000000..1f0a609e9
--- /dev/null
+++ b/libre/python-django-countries/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+_pkgname=django-countries
+pkgname=(python-$_pkgname python2-$_pkgname)
+pkgver=3.3
+pkgdesc="Provides a country field for Django models"
+url="https://github.com/SmileyChris/django-countries"
+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{,.asc})
+md5sums=('a981d1ae636ef8b5f05a0c73f7a7806e'
+ 'SKIP')
+validpgpkeys=('012F5E34E68956C6C24A4D2FD6F44049700D3AF0')
+
+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
+}