[arch-commits] Commit in python-pyproj/repos (2 files)
Jaroslav Lichtblau
jlichtblau at archlinux.org
Thu Mar 12 21:01:38 UTC 2015
Date: Thursday, March 12, 2015 @ 22:01:38
Author: jlichtblau
Revision: 129146
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 129145, python-pyproj/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: python-pyproj/repos/community-staging-x86_64/PKGBUILD (from rev 129145, python-pyproj/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-03-12 21:01:38 UTC (rev 129146)
@@ -0,0 +1,53 @@
+# $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.3
+pkgrel=4
+pkgdesc="Python interfaces to PROJ.4 library"
+arch=('i686' 'x86_64')
+url="http://code.google.com/p/pyproj"
+license=('custom')
+makedepends=('python' 'python2')
+source=(http://pyproj.googlecode.com/files/pyproj-${pkgver}.tar.gz)
+sha1sums=('3f290241e113ea63d0487a48e7e054cc1c3e19f8')
+
+prepare() {
+ cd "${srcdir}"
+ cp -a pyproj-${pkgver}{,-python2}
+}
+
+build() {
+ cd "${srcdir}"
+
+# Build python 3 module
+ cd pyproj-${pkgver}
+ python3 setup.py build
+
+# Build python 2 module
+ cd ../pyproj-${pkgver}-python2
+ python2 setup.py build
+}
+
+package_python-pyproj() {
+ depends=('proj' 'python>=3.4')
+
+ cd "${srcdir}"/pyproj-${pkgver}
+ python3 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+
+ install -dm755 "${pkgdir}"/usr/share/licenses/${pkgname}
+ install -m644 LICENSE_proj4 "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-pyproj() {
+ depends=('proj' 'python2>=2.7')
+ replaces=('pyproj')
+
+ cd "${srcdir}"/pyproj-${pkgver}-python2
+ python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
+
+ install -dm755 "${pkgdir}"/usr/share/licenses/${pkgname}
+ install -m644 LICENSE_proj4 "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
More information about the arch-commits
mailing list