summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f0c4be125d6e33e54198e54ad4cfab9a7d137ed3 (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
# Maintainer: pumpkincheshire <sollyonzou@gmail.com>

pkgname='python-contextily'
_name=contextily
pkgver=1.1.0
pkgrel=1
pkgdesc='Context geo-tiles in Python'
arch=('any')
url='https://github.com/geopandas/contextily'
license=('MIT')
makedepends=('python-setuptools')
depends=('python-geopy'
  'python-matplotlib'
  'python-mercantile'
  'python-pillow'
  'python-rasterio'
  'python-joblib')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('3324cba6f9e49c70e8841957d0d8907275cd0baf001b8d1feda4868c53a9557b')

build() {
  cd "$_name-$pkgver"
  python setup.py build
}

package() {
  cd "$_name-$pkgver"
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}