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

Bruno Pagani archange at archlinux.org
Mon Feb 17 17:40:49 UTC 2020


    Date: Monday, February 17, 2020 @ 17:40:48
  Author: archange
Revision: 574460

upgpkg: python-cftime 1.1.0-1

Also drop python2 variant.

Modified:
  python-cftime/trunk/PKGBUILD

----------+
 PKGBUILD |   40 +++++++++++-----------------------------
 1 file changed, 11 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-17 17:40:29 UTC (rev 574459)
+++ PKGBUILD	2020-02-17 17:40:48 UTC (rev 574460)
@@ -1,44 +1,26 @@
 # Maintainer: Bruno Pagani <archange at archlinux.org>
 
 _pkg=cftime
-pkgbase=python-${_pkg,,}
-pkgname=("python-${_pkg,,}" "python2-${_pkg,,}")
-pkgver=1.0.4.2
-pkgrel=3
+pkgname=python-${_pkg}
+pkgver=1.1.0
+pkgrel=1
 pkgdesc="Time-handling functionality from python-netcdf4"
 arch=(x86_64)
 url="https://unidata.github.io/cftime"
 license=(MIT)
-makedepends=(cython python-setuptools cython2 python2-setuptools python-numpy python2-numpy)
-source=("https://files.pythonhosted.org/packages/source/c/${_pkg}/${_pkg}-${pkgver}.tar.gz")
-sha256sums=('1ac64f8f9066ea756ea27d67cedaf064e7c866275218fa7c84684066a5890f70')
+depends=(python-numpy)
+makedepends=(cython python-setuptools)
+#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+source=(https://github.com/Unidata/cftime/archive/v${pkgver}rel/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('ed814ca8d1ef155f4fa8c3a4dcf7449922704b20ce9532c8da0c054c20ed3532')
 
-prepare() {
-    cp -a ${_pkg}-${pkgver}{,-py2}
-}
-
 build() {
-    cd ${_pkg}-${pkgver}
+    cd ${_pkg}-${pkgver}rel
     python setup.py build
-
-    cd ../${_pkg}-${pkgver}-py2
-    python2 setup.py build
 }
 
-package_python-cftime() {
-    depends=(python-numpy)
-
-    cd ${_pkg}-${pkgver}
+package() {
+    cd ${_pkg}-${pkgver}rel
     python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
-
     install -Dm644 COPYING -t "${pkgdir}"/usr/share/licenses/${pkgname}
 }
-
-package_python2-cftime() {
-    depends=(python2-numpy)
-
-    cd ${_pkg}-${pkgver}-py2
-    python2 setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
-
-    install -Dm644 COPYING -t "${pkgdir}"/usr/share/licenses/${pkgname}
-}



More information about the arch-commits mailing list