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

Jaroslav Lichtblau jlichtblau at archlinux.org
Wed May 16 19:46:40 UTC 2018


    Date: Wednesday, May 16, 2018 @ 19:46:39
  Author: jlichtblau
Revision: 323171

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

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

Copied: python-pyproj/repos/community-staging-x86_64/PKGBUILD (from rev 323170, python-pyproj/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-05-16 19:46:39 UTC (rev 323171)
@@ -0,0 +1,56 @@
+# $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=5
+pkgdesc="Python interfaces to PROJ.4 library"
+arch=('x86_64')
+url="http://jswhit.github.io/pyproj/"
+license=('custom')
+makedepends=('python-setuptools' 'python2-setuptools' 'proj')
+source=($pkgname-$pkgver.tar.gz::https://github.com/jswhit/pyproj/archive/v${pkgver}rel.tar.gz)
+sha256sums=('0e19f02ebbf4c253813142ffe06e12489f3861877c3fab75b6c769c1a1960cac')
+
+prepare() {
+  cd "${srcdir}"
+
+# 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