archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-pyproj / repos / community-x86_64 / PKGBUILD
blobf8f9c1487e9ae144e23a8ac24b0ebd7b6e1e9968
1 # Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>
2 # Maintainer: Bruno Pagani <archange@archlinux.org>
3 # Contributor: Stéphane Gaudreault <stephane@archlinux.org>
5 pkgname=python-pyproj
6 pkgver=3.5.0
7 pkgrel=2
8 pkgdesc="Python interfaces to PROJ.4 library"
9 arch=(x86_64)
10 url="https://github.com/pyproj4/pyproj"
11 license=(custom)
12 depends=(proj python)
13 makedepends=(python-setuptools cython)
14 checkdepends=(python-pytest python-certifi python-numpy python-pandas python-shapely python-xarray)
15 source=(https://github.com/pyproj4/pyproj/archive/$pkgver/$pkgname-$pkgver.tar.gz)
16 sha256sums=('7cfd001b6af602cace31895c98a486e0570b8a2f4e7c8bb97a0e9f64e8cf029f')
18 prepare() {
19   # Remove RPATH
20   sed -i 's/library_dirs if os.name.*/None/' pyproj-$pkgver/setup.py
23 build() {
24   export PROJ_DIR=/usr
25   cd pyproj-$pkgver
26   python setup.py build
29 # Import issues, no time to investigate
30 #check() {
31 #  cd pyproj-$pkgver
32 #  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
33 #  PYTHONPATH="${PWD}"/build/lib.linux-$CARCH-${python_version} pytest -vv --color=yes
36 package() {
37   cd pyproj-$pkgver
38   python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
39   install -Dm644 LICENSE_proj "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE