[arch-commits] Commit in python-pyproj/repos (2 files)
Jaroslav Lichtblau
jlichtblau at archlinux.org
Tue Apr 20 18:29:35 UTC 2021
Date: Tuesday, April 20, 2021 @ 18:29:34
Author: jlichtblau
Revision: 920207
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 920206, python-pyproj/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-pyproj/repos/community-staging-x86_64/PKGBUILD (from rev 920206, python-pyproj/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2021-04-20 18:29:34 UTC (rev 920207)
@@ -0,0 +1,37 @@
+# Maintainer: Jaroslav Lichtblau <svetlemodry at archlinux.org>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+
+pkgname=python-pyproj
+pkgver=2.6.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')
+source=($pkgname-$pkgver.tar.gz::https://github.com/pyproj4/pyproj/archive/v${pkgver}rel.tar.gz)
+sha256sums=('4025fb2ca8834ad418b07577e4e927fe3aaf8b682c994a9fa62cc300e88e72e7')
+
+prepare() {
+ cd "${srcdir}"
+
+# Remove RPATH
+ sed -i '/runtime_library_dirs=/d' pyproj-${pkgver}rel/setup.py
+}
+
+build() {
+ cd "${srcdir}"
+
+ export PROJ_DIR=/usr
+
+ cd pyproj-${pkgver}rel
+ python setup.py build
+}
+
+package() {
+ 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
+}
More information about the arch-commits
mailing list