[arch-commits] Commit in python-pyproj/repos (2 files)
Bruno Pagani
archange at gemini.archlinux.org
Mon Jun 27 21:14:08 UTC 2022
Date: Monday, June 27, 2022 @ 21:14:08
Author: archange
Revision: 1239760
archrelease: copy trunk to community-staging-x86_64
Added:
python-pyproj/repos/community-staging-x86_64/
python-pyproj/repos/community-staging-x86_64/PKGBUILD
(from rev 1239759, python-pyproj/trunk/PKGBUILD)
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Copied: python-pyproj/repos/community-staging-x86_64/PKGBUILD (from rev 1239759, python-pyproj/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-06-27 21:14:08 UTC (rev 1239760)
@@ -0,0 +1,40 @@
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+
+pkgname=python-pyproj
+pkgver=3.3.1
+pkgrel=1
+pkgdesc="Python interfaces to PROJ.4 library"
+arch=(x86_64)
+url="https://github.com/pyproj4/pyproj"
+license=(custom)
+depends=(proj python)
+makedepends=(python-setuptools cython)
+checkdepends=(python-pytest python-certifi python-numpy python-pandas python-shapely python-xarray)
+source=(https://github.com/pyproj4/pyproj/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('f4201ea962458c4da927ddd19f92fff3d81db8a78a9297269f56810dab01700c')
+
+prepare() {
+ # Remove RPATH
+ sed -i '/runtime_library_dirs/d' pyproj-$pkgver/setup.py
+}
+
+build() {
+ export PROJ_DIR=/usr
+ cd pyproj-$pkgver
+ python setup.py build
+}
+
+# Import issues, no time to investigate
+#check() {
+# cd pyproj-$pkgver
+# local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+# PYTHONPATH="${PWD}"/build/lib.linux-$CARCH-${python_version} pytest -vv --color=yes
+#}
+
+package() {
+ cd pyproj-$pkgver
+ python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE_proj4 "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
More information about the arch-commits
mailing list