1 # Maintainer: Konstantin Gizdov <arch at kge dot pw>
3 _pkgname=uproot-methods
4 pkgname="python-${_pkgname}"
7 pkgdesc="Pythonic mix-ins for ROOT classes"
9 makedepends=('python-setuptools')
10 depends=('python-awkward' 'python-numpy')
11 checkdepends=('python-awkward' 'python-pytest')
12 url="https://github.com/scikit-hep/${_pkgname}"
15 source=("${pkgname}::${url}/archive/${pkgver}.zip")
16 sha256sums=('c15d427867ee469a68d2c50adfb4fc309ae53b660142d266c85543ee1333eec3')
19 python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))'
23 cd "${srcdir}/uproot3-methods-${pkgver}"
28 cd "${srcdir}/uproot3-methods-${pkgver}"
33 cd "${srcdir}/uproot3-methods-${pkgver}"
35 python setup.py install --root="${pkgdir}/" --optimize=1
37 install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
38 install -D README.rst "${pkgdir}/usr/share/${pkgname}/README.rst"
39 ln -s "/usr/lib/python$(get_pyver)/site-packages/uproot3_methods" "${pkgdir}/usr/lib/python$(get_pyver)/site-packages/uproot_methods"