[arch-commits] Commit in python-cftime/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Oct 26 05:35:16 UTC 2019
Date: Saturday, October 26, 2019 @ 05:35:16
Author: foutrelis
Revision: 520135
archrelease: copy trunk to community-staging-x86_64
Added:
python-cftime/repos/community-staging-x86_64/
python-cftime/repos/community-staging-x86_64/PKGBUILD
(from rev 520134, python-cftime/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: python-cftime/repos/community-staging-x86_64/PKGBUILD (from rev 520134, python-cftime/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-10-26 05:35:16 UTC (rev 520135)
@@ -0,0 +1,44 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=cftime
+pkgbase=python-${_pkg,,}
+pkgname=("python-${_pkg,,}" "python2-${_pkg,,}")
+pkgver=1.0.4
+pkgrel=2
+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=('f8f40f701b4ef2a4bf4c8e827b8acc7886bb9dd93cf2204b4bc81d9352c69312')
+
+prepare() {
+ cp -a ${_pkg}-${pkgver}{,-py2}
+}
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build
+
+ cd ../${_pkg}-${pkgver}-py2
+ python2 setup.py build
+}
+
+package_python-cftime() {
+ depends=(python-numpy)
+
+ cd ${_pkg}-${pkgver}
+ 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