summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: db7c8ae31894fdb3bcd4d029af46e9d704a834e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Łukasz Pożarlik <lpozarlik@gmail.com>

pkgname=('python-django-location-field' 'python2-django-location-field')
pkgdesc="Let users pick locations using a map widget and store its latitude and longitude"
pkgver=2.0.6
pkgrel=2
url="https://github.com/caioariede/django-location-field"
license=('MIT')
arch=('any')
makedepends=('python' 
  'python-setuptools' 
  'python2' 
  'python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/d/django-location-field/django-location-field-${pkgver}.tar.gz")
sha256sums=('9d5be5270f23fd9949687ea7014838aba9e939127c9f2da082ffe112d34a43c8')

build() {
  cp -r ${srcdir}/django-location-field-${pkgver} ${srcdir}/django-location-field-${pkgver}-py2

  cd ${srcdir}/django-location-field-${pkgver}
  python setup.py build

  cd ${srcdir}/django-location-field-${pkgver}-py2
  python2 setup.py build
}

package_python-django-location-field() {
  depends=('python-django')
  cd ${srcdir}/django-location-field-${pkgver}
  python setup.py install --prefix=/usr --root=${pkgdir}
  install -D --mode 644 --target-directory "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}

package_python2-django-location-field() {
  depends=('python2-django')
  cd ${srcdir}/django-location-field-${pkgver}-py2
  python2 setup.py install --prefix=/usr --root=${pkgdir}
  install -D --mode 644 --target-directory "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}

# vim:set ts=2 sw=2 et: