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

Felix Yan felixonmars at archlinux.org
Sun Jul 8 17:06:29 UTC 2018


    Date: Sunday, July 8, 2018 @ 17:06:29
  Author: felixonmars
Revision: 355107

archrelease: copy trunk to community-staging-x86_64

Added:
  python-h5py/repos/community-staging-x86_64/
  python-h5py/repos/community-staging-x86_64/PKGBUILD
    (from rev 355106, python-h5py/trunk/PKGBUILD)

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

Copied: python-h5py/repos/community-staging-x86_64/PKGBUILD (from rev 355106, python-h5py/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-07-08 17:06:29 UTC (rev 355107)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <archange at archlinux.org>
+# Contributor: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Rich Li <rich at dranek.com>
+# Contributor: Sebastien Binet <binet at lblbox>
+
+_pkg=h5py
+pkgbase=python-$_pkg
+pkgname=(python-$_pkg python2-$_pkg)
+pkgver=2.8.0
+pkgrel=2
+pkgdesc="General-purpose Python bindings for the HDF5 library"
+url="http://www.h5py.org/"
+arch=('x86_64')
+license=('BSD')
+makedepends=('hdf5' 'cython' 'cython2' 'python-numpy' 'python2-numpy' 'python-six' 'python2-six'
+             'python-pkgconfig' 'python2-pkgconfig')
+checkdepends=('python2-unittest2')
+#source=("https://pypi.io/packages/source/h/$_pkg/$_pkg-$pkgver.tar.gz"{,.asc})
+source=($pkgname-$pkgver.tar.gz::"https://github.com/h5py/h5py/archive/$pkgver.tar.gz")
+sha256sums=('eae41382be28b7264824450ce343dd625f972bedaaa3b0cced284986aabcbaee')
+#            'SKIP')
+validpgpkeys=('AC47F71DB275ECD0B3DA46E857FA4540DD4EFCF7') # Thomas A Caswell (Brookhaven National Lab) <tcaswell at bnl.gov>
+
+prepare() {
+  # Remove RPATH
+  sed -i "s/settings\\['runtime_library_dirs'\\] = settings\\['library_dirs'\\]/pass/" $_pkg-$pkgver/setup_build.py
+
+  cp -a $_pkg-$pkgver{,-py2}
+}
+
+build() {
+  cd $_pkg-$pkgver
+  python setup.py build
+
+  cd ../$_pkg-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd $_pkg-$pkgver
+  python setup.py test || warning "Tests failed"
+
+  cd ../$_pkg-$pkgver-py2
+  python2 setup.py test || warning "Tests failed"
+}
+
+package_python-h5py() {
+  depends=('hdf5' 'python-numpy' 'python-six')
+  conflicts=('hdf5-openmpi')
+
+  cd $_pkg-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -D licenses/license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-h5py() {
+  depends=('hdf5' 'python2-numpy' 'python2-six')
+  conflicts=('hdf5-openmpi')
+
+  cd $_pkg-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+
+  install -D licenses/license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list