[arch-commits] Commit in (4 files)

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


    Date: Wednesday, December 15, 2021 @ 20:28:08
  Author: kgizdov
Revision: 1073438

initial release

Added:
  python-mplhep_data/
  python-mplhep_data/repos/
  python-mplhep_data/trunk/
  python-mplhep_data/trunk/PKGBUILD

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

Added: python-mplhep_data/trunk/PKGBUILD
===================================================================
--- python-mplhep_data/trunk/PKGBUILD	                        (rev 0)
+++ python-mplhep_data/trunk/PKGBUILD	2021-12-15 20:28:08 UTC (rev 1073438)
@@ -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