[arch-commits] Commit in python-h5py/trunk (PKGBUILD)

Bruno Pagani archange at archlinux.org
Sun Dec 15 15:59:56 UTC 2019


    Date: Sunday, December 15, 2019 @ 15:59:55
  Author: archange
Revision: 537747

Sync PKGBUILD with -openmpi version

Modified:
  python-h5py/trunk/PKGBUILD

----------+
 PKGBUILD |   55 +++++++++++++++++++++++++++++--------------------------
 1 file changed, 29 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-15 15:50:11 UTC (rev 537746)
+++ PKGBUILD	2019-12-15 15:59:55 UTC (rev 537747)
@@ -1,63 +1,66 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <archange at archlinux.org>
+# Maintainer: Bruno Pagani <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)
+pkgbase=python-${_pkg}
+pkgname=(python-${_pkg} python2-${_pkg})
 pkgver=2.10.0
-pkgrel=1
+pkgrel=2
 pkgdesc="General-purpose Python bindings for the HDF5 library"
+arch=(x86_64)
 url="https://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=('python-pytest' 'python2-pytest' 'python2-unittest2')
-source=("https://files.pythonhosted.org/packages/source/h/$_pkg/$_pkg-$pkgver.tar.gz")
+license=(BSD)
+depends=(hdf5)
+makedepends=(cython cython2 python-numpy python2-numpy python-six python2-six
+             python-pkgconfig python2-pkgconfig)
+checkdepends=(python-pytest python2-pytest python2-unittest2)
+conflicts=(hdf5-openmpi)
+source=(https://files.pythonhosted.org/packages/source/h/${_pkg}/${_pkg}-${pkgver}.tar.gz)
 sha256sums=('84412798925dc870ffd7107f045d7659e60f5d46d1c70c700375248bf6bf512d')
+validpgpkeys=(AC47F71DB275ECD0B3DA46E857FA4540DD4EFCF7  # Thomas A Caswell (Brookhaven National Lab) <tcaswell at bnl.gov>
+              96B7334D7610EE3E68AFFE589E027116943D6A8B) # Thomas A Caswell <tcaswell at bnl.gov> (new key)
+# See https://github.com/h5py/h5py/issues/1299 about lack of GPG sigs for recent releases
 
 prepare() {
   # Remove RPATH
-  sed -i "s/settings\\['runtime_library_dirs'\\] = settings\\['library_dirs'\\]/pass/" $_pkg-$pkgver/setup_build.py
-  cp -a $_pkg-$pkgver{,-py2}
+  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
+  cd ${_pkg}-${pkgver}
   python setup.py build
 
-  cd ../$_pkg-$pkgver-py2
+  cd ../${_pkg}-${pkgver}-py2
   python2 setup.py build
 }
 
 check() {
-  cd $_pkg-$pkgver
+  cd ${_pkg}-${pkgver}
   python setup.py test
 
-  cd ../$_pkg-$pkgver-py2
+  cd ../${_pkg}-${pkgver}-py2
   # https://github.com/h5py/h5py/issues/1435
   python2 setup.py test || warning "Tests failed"
 }
 
 package_python-h5py() {
-  depends=('hdf5' 'python-numpy' 'python-six')
-  conflicts=('hdf5-openmpi')
+  depends+=(python-numpy python-six)
 
-  cd $_pkg-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  cd ${_pkg}-${pkgver}
+  python setup.py install --root="${pkgdir}" --skip-build --optimize=1
 
-  install -D licenses/license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 licenses/license.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
 }
 
 package_python2-h5py() {
-  depends=('hdf5' 'python2-numpy' 'python2-six')
-  conflicts=('hdf5-openmpi')
+  depends+=(python2-numpy python2-six)
 
-  cd $_pkg-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
+  cd ${_pkg}-${pkgver}-py2
+  python2 setup.py install --root="${pkgdir}" --skip-build --optimize=1
 
-  install -D licenses/license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 licenses/license.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
 }



More information about the arch-commits mailing list