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

Eli Schwartz eschwartz at archlinux.org
Tue Jul 3 03:32:10 UTC 2018


    Date: Tuesday, July 3, 2018 @ 03:32:10
  Author: eschwartz
Revision: 350299

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

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

Copied: python-pyproj/repos/community-staging-x86_64/PKGBUILD (from rev 350298, python-pyproj/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-07-03 03:32:10 UTC (rev 350299)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+
+pkgbase=python-pyproj
+pkgname=('python-pyproj' 'python2-pyproj')
+pkgver=1.9.5.1
+pkgrel=6
+pkgdesc="Python interfaces to PROJ.4 library"
+arch=('x86_64')
+url="https://jswhit.github.io/pyproj/"
+license=('custom')
+makedepends=('python-setuptools' 'python2-setuptools' 'proj' 'cython')
+source=($pkgname-$pkgver.tar.gz::https://github.com/jswhit/pyproj/archive/v${pkgver}rel.tar.gz)
+sha256sums=('0e19f02ebbf4c253813142ffe06e12489f3861877c3fab75b6c769c1a1960cac')
+
+prepare() {
+  cd "${srcdir}"
+
+  # regenerate for python 3.7
+  cythonize -f pyproj-${pkgver}rel/_proj.pyx
+
+# Remove RPATH
+  sed -i "s/runtime_library_dirs=libdirs,//" pyproj-${pkgver}rel/setup.py
+
+  cp -a pyproj-${pkgver}rel{,-python2}
+}
+
+build() {
+  cd "${srcdir}"
+
+  export PROJ_DIR=/usr
+
+# Build python 3 module
+  cd pyproj-${pkgver}rel
+  python setup.py build
+
+# Build python 2 module
+  cd ../pyproj-${pkgver}rel-python2
+  python2 setup.py build
+}
+
+package_python-pyproj() {
+  depends=('proj' 'python')
+
+  cd "${srcdir}"/pyproj-${pkgver}rel
+  python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+
+  install -Dm644 LICENSE_proj4 "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-pyproj() {
+  depends=('proj' 'python2')
+
+  cd "${srcdir}"/pyproj-${pkgver}rel-python2
+  python2 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