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

Konstantin Gizdov kgizdov at gemini.archlinux.org
Wed Dec 15 20:28:18 UTC 2021


    Date: Wednesday, December 15, 2021 @ 20:28:17
  Author: kgizdov
Revision: 1073439

archrelease: copy trunk to community-any

Added:
  python-mplhep_data/repos/community-any/
  python-mplhep_data/repos/community-any/PKGBUILD
    (from rev 1073438, python-mplhep_data/trunk/PKGBUILD)

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

Copied: python-mplhep_data/repos/community-any/PKGBUILD (from rev 1073438, python-mplhep_data/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2021-12-15 20:28:17 UTC (rev 1073439)
@@ -0,0 +1,31 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+
+_pkgname='mplhep_data'
+pkgname="python-${_pkgname}"
+pkgver='0.0.3'
+pkgrel=1
+pkgdesc="Sub-package to hold data (fonts) for mplhep."
+arch=('any')
+url='https://github.com/scikit-hep/mplhep_data'
+license=('MIT')
+depends=('python')
+makedepends=('git' 'python-setuptools' 'python-setuptools-scm')
+checkdepends=('python-pytest' 'python-importlib-metadata')
+source=("${pkgname}::git+${url}#tag=v${pkgver}")
+sha256sums=('SKIP')
+
+build() {
+  cd "${srcdir}/${pkgname}"
+  python setup.py bdist_egg
+}
+
+check() {
+  cd "${srcdir}/${pkgname}"
+  PYTHONPATH="${PWD}/build/lib:${PWD}/src" pytest
+}
+
+package() {
+  cd "${srcdir}/${pkgname}"
+  python setup.py install  --skip-build --root="${pkgdir}/" --optimize=1
+  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list