Created
September 8, 2023 08:06
-
-
Save nestor013/b83456893bd7c7789c2790638027929a to your computer and use it in GitHub Desktop.
PKGBUILD for python-cartopy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Created using pip2pkgbuild cartopy -n python-cartopy | |
pkgbase='python-cartopy' | |
pkgname=('python-cartopy') | |
_module='Cartopy' | |
pkgver='0.22.0' | |
pkgrel=1 | |
pkgdesc="A Python library for cartographic visualizations with Matplotlib" | |
url="https://scitools.org.uk/cartopy/" | |
# Copied from original PKGBUILD from Gaute Hope <eg@gaute.vetsj.com> | |
depends=( | |
'geos' 'python-certifi' 'python-matplotlib' 'python-numpy' 'python-pillow' | |
'python-pyproj' 'python-pyshp' 'python-scipy' 'python-shapely' 'python-six' | |
) | |
# Copied from original PKGBUILD from Gaute Hope <eg@gaute.vetsj.com> | |
optdepends=( | |
'python-fiona: faster shapefile reading' | |
'python-gdal: for use with SRTM data' | |
'python-pyepsg: interface to https://epsg.io' | |
'python-pykdtree: faster warping of images' | |
'python-owslib: access OGC clients' | |
) | |
makedepends=('python-setuptools') | |
license=('LGPL') | |
arch=('any') | |
source=( | |
"https://files.pythonhosted.org/packages/source/${_module::1}/$_module/${_module/-/_}-$pkgver.tar.gz" | |
) | |
sha256sums=( | |
'b300f90120931d43f11ef87c064ea1dacec1b59a4940aa76ebf82cf09548bb49' | |
) | |
build() { | |
cd "${srcdir}/${_module}-${pkgver}" | |
python setup.py build | |
} | |
package() { | |
depends+=() | |
cd "${srcdir}/${_module}-${pkgver}" | |
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment