[arch-commits] Commit in python-pyproj/repos (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 20:21:57 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:21:57
  Author: foutrelis
Revision: 1058115

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 1058112, python-pyproj/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: python-pyproj/repos/community-staging-x86_64/PKGBUILD (from rev 1058112, python-pyproj/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-30 20:21:57 UTC (rev 1058115)
@@ -0,0 +1,37 @@
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+
+pkgname=python-pyproj
+pkgver=3.0.1
+pkgrel=2
+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')
+source=($pkgname-$pkgver.tar.gz::https://github.com/pyproj4/pyproj/archive/$pkgver.tar.gz)
+sha256sums=('f078f1d2e4aee9e2006a985c768741eb152f94e0ada69e9db92015986fb9a4f6')
+
+prepare() {
+  cd "${srcdir}"
+
+# Remove RPATH
+  sed -i '/runtime_library_dirs=/d' pyproj-$pkgver/setup.py
+}
+
+build() {
+  cd "${srcdir}"
+
+  export PROJ_DIR=/usr
+
+  cd pyproj-$pkgver
+  python setup.py build
+}
+
+package() {
+  cd "${srcdir}"/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