[arch-commits] Commit in python-pyproj/repos (4 files)
Jaroslav Lichtblau
jlichtblau at archlinux.org
Sat Sep 19 16:24:28 UTC 2015
Date: Saturday, September 19, 2015 @ 18:24:28
Author: jlichtblau
Revision: 140934
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
python-pyproj/repos/community-staging-i686/
python-pyproj/repos/community-staging-i686/PKGBUILD
(from rev 140933, python-pyproj/trunk/PKGBUILD)
python-pyproj/repos/community-staging-x86_64/
python-pyproj/repos/community-staging-x86_64/PKGBUILD
(from rev 140933, python-pyproj/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 53 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 53 ++++++++++++++++++++++++++++++++++++
2 files changed, 106 insertions(+)
Copied: python-pyproj/repos/community-staging-i686/PKGBUILD (from rev 140933, python-pyproj/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-09-19 16:24:28 UTC (rev 140934)
@@ -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.4
+pkgrel=2
+pkgdesc="Python interfaces to PROJ.4 library"
+arch=('i686' 'x86_64')
+url="http://jswhit.github.io/pyproj/"
+license=('custom')
+makedepends=('python' 'python2')
+source=($pkgname-$pkgver.tar.gz::https://github.com/jswhit/pyproj/archive/v${pkgver}rel.tar.gz)
+sha256sums=('b820fa1d52be82469571cd167f533b7d621342818cb971b4a13d8d0c2e454f48')
+
+prepare() {
+ cd "${srcdir}"
+ cp -a pyproj-${pkgver}rel{,-python2}
+}
+
+build() {
+ cd "${srcdir}"
+
+# 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>=3.5')
+
+ cd "${srcdir}"/pyproj-${pkgver}rel
+ python 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}rel-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
+}
Copied: python-pyproj/repos/community-staging-x86_64/PKGBUILD (from rev 140933, python-pyproj/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-09-19 16:24:28 UTC (rev 140934)
@@ -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.4
+pkgrel=2
+pkgdesc="Python interfaces to PROJ.4 library"
+arch=('i686' 'x86_64')
+url="http://jswhit.github.io/pyproj/"
+license=('custom')
+makedepends=('python' 'python2')
+source=($pkgname-$pkgver.tar.gz::https://github.com/jswhit/pyproj/archive/v${pkgver}rel.tar.gz)
+sha256sums=('b820fa1d52be82469571cd167f533b7d621342818cb971b4a13d8d0c2e454f48')
+
+prepare() {
+ cd "${srcdir}"
+ cp -a pyproj-${pkgver}rel{,-python2}
+}
+
+build() {
+ cd "${srcdir}"
+
+# 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>=3.5')
+
+ cd "${srcdir}"/pyproj-${pkgver}rel
+ python 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}rel-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