[arch-commits] Commit in (4 files)

Konstantin Gizdov kgizdov at gemini.archlinux.org
Mon Feb 7 12:51:59 UTC 2022


    Date: Monday, February 7, 2022 @ 12:51:59
  Author: kgizdov
Revision: 1127816

initial release

Added:
  python-scikit-hep-testdata/
  python-scikit-hep-testdata/repos/
  python-scikit-hep-testdata/trunk/
  python-scikit-hep-testdata/trunk/PKGBUILD

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

Added: python-scikit-hep-testdata/trunk/PKGBUILD
===================================================================
--- python-scikit-hep-testdata/trunk/PKGBUILD	                        (rev 0)
+++ python-scikit-hep-testdata/trunk/PKGBUILD	2022-02-07 12:51:59 UTC (rev 1127816)
@@ -0,0 +1,35 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+
+_pkgname=scikit-hep-testdata
+pkgbase="python-${_pkgname}"
+pkgname=("${pkgbase}")
+pkgver=0.4.11
+pkgrel=1
+pkgdesc='A common package to provide example files (e.g. ROOT) for testing and developing packages against'
+arch=('any')
+makedepends=('git' 'python-setuptools' 'python-setuptools-scm' 'python-toml')
+checkdepends=('python-pytest-runner')
+depends=('python-pyaml' 'python-requests')
+url="https://github.com/scikit-hep/${_pkgname}"
+license=('BSD')
+
+source=("${_pkgname}-${pkgver}::git+${url}")
+sha256sums=('SKIP')
+
+build() {
+    cd "${srcdir}/${_pkgname}-${pkgver}"
+    python setup.py build
+}
+
+check() {
+    cd "${srcdir}/${_pkgname}-${pkgver}"
+    python setup.py pytest
+}
+
+package() {
+    cd "${srcdir}/${_pkgname}-${pkgver}"
+
+    python setup.py install --root="${pkgdir}/" --optimize=1
+
+    install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list