[arch-commits] Commit in python-netcdf4/repos/community-x86_64 (PKGBUILD PKGBUILD)

Bruno Pagani archange at gemini.archlinux.org
Wed Jun 29 19:25:40 UTC 2022


    Date: Wednesday, June 29, 2022 @ 19:25:40
  Author: archange
Revision: 1241157

archrelease: copy trunk to community-x86_64

Added:
  python-netcdf4/repos/community-x86_64/PKGBUILD
    (from rev 1241156, python-netcdf4/trunk/PKGBUILD)
Deleted:
  python-netcdf4/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   75 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 41 insertions(+), 34 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-29 19:25:35 UTC (rev 1241156)
+++ PKGBUILD	2022-06-29 19:25:40 UTC (rev 1241157)
@@ -1,34 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-# Contributor: Spyros Stathopoulos <foucault.online at gmail.com>
-# Contributor: richli <rich at dranek dot com>
-# Contributor: rememberthemer <rememberthemer at _GMAIL_DOT_COM_>
-
-_pkg=netCDF4
-pkgname=python-${_pkg,,}
-pkgver=1.5.8
-pkgrel=1
-pkgdesc="Python/NumPy interface to the netCDF C library"
-arch=(x86_64)
-url="https://unidata.github.io/netcdf4-python"
-license=(MIT)
-depends=(python-numpy python-cftime netcdf)
-makedepends=(cython python-setuptools)
-source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
-sha256sums=('ca3d468f4812c0999df86e3f428851fb0c17ac34ce0827115c246b0b690e4e84')
-
-build() {
-  cd ${_pkg}-${pkgver}
-  USE_NCCONFIG=1 python setup.py build
-}
-
-check() {
-  cd ${_pkg}-${pkgver}/test
-  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
-  PYTHONPATH="../build/lib.linux-${CARCH}-${python_version}" python -B ./run_all.py
-}
-
-package() {
-  cd ${_pkg}-${pkgver}
-  USE_NCCONFIG=1 python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=2
-  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
-}

Copied: python-netcdf4/repos/community-x86_64/PKGBUILD (from rev 1241156, python-netcdf4/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-06-29 19:25:40 UTC (rev 1241157)
@@ -0,0 +1,41 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Spyros Stathopoulos <foucault.online at gmail.com>
+# Contributor: richli <rich at dranek dot com>
+# Contributor: rememberthemer <rememberthemer at _GMAIL_DOT_COM_>
+
+_pkg=netCDF4
+pkgname=python-${_pkg,,}
+pkgver=1.6.0
+pkgrel=1
+pkgdesc="Python/NumPy interface to the netCDF C library"
+arch=(x86_64)
+url="https://unidata.github.io/netcdf4-python"
+license=(MIT)
+depends=(python-numpy python-cftime netcdf)
+makedepends=(cython python-setuptools)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz
+        ${pkgname}-fix-netcdf-filters-detection.patch::https://github.com/Unidata/netcdf4-python/pull/1173.patch)
+sha256sums=('95efa373d9a3e1cd0df7193e76e6680d9eca28e60097ca8139afea8a4346ba63'
+            'c407affa80e49547dca938ef1cb4764dedb9abd8f32a3e402d66d29aa7137f4c')
+
+prepare() {
+  # Compressor filters are not packaged currently
+  patch -p1 -d ${_pkg}-${pkgver} < ${pkgname}-fix-netcdf-filters-detection.patch || true
+}
+
+build() {
+  cd ${_pkg}-${pkgver}
+  USE_NCCONFIG=1 python setup.py build
+}
+
+check() {
+  cd ${_pkg}-${pkgver}/test
+  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+  PYTHONPATH="../build/lib.linux-${CARCH}-${python_version}" python -B ./run_all.py
+}
+
+package() {
+  cd ${_pkg}-${pkgver}
+  USE_NCCONFIG=1 python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=2
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}



More information about the arch-commits mailing list