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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 11:36:12 UTC 2021


    Date: Wednesday, December 1, 2021 @ 11:36:12
  Author: felixonmars
Revision: 1059219

archrelease: copy trunk to community-staging-any

Added:
  python-awkward/repos/community-staging-any/
  python-awkward/repos/community-staging-any/PKGBUILD
    (from rev 1059217, python-awkward/trunk/PKGBUILD)

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

Copied: python-awkward/repos/community-staging-any/PKGBUILD (from rev 1059217, python-awkward/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 11:36:12 UTC (rev 1059219)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-awkward
+pkgver=0.15.5
+pkgrel=3
+pkgdesc="Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy"
+url="https://github.com/scikit-hep/awkward-0.x"
+license=('BSD')
+arch=('any')
+depends=('python-numpy')
+makedepends=('python-setuptools' 'python-pytest-runner')
+checkdepends=('python-h5py' 'python-pandas')
+source=("${pkgname}::https://github.com/scikit-hep/awkward-0.x/archive/${pkgver}.tar.gz")
+sha512sums=('b0160a916a7bf52b46ff98b83fe7145554e6122b6b574fa76d07312fedad8044cef43e72186c4434496da99455bd947a3fce4bca8f8c591816d91e7b6a499051')
+
+get_pyver () {
+    python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))'
+}
+
+build() {
+  cd awkward-0.x-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd awkward-0.x-$pkgver
+  pytest tests
+}
+
+package() {
+  cd awkward-0.x-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  ln -s "/usr/lib/python$(get_pyver)/site-packages/awkward0" "${pkgdir}/usr/lib/python$(get_pyver)/site-packages/awkward"
+}



More information about the arch-commits mailing list