Date: Wednesday, March 10, 2021 @ 14:37:48 Author: kgizdov Revision: 887218
upgpkg: python-uproot-methods 0.10.0-1 Modified: python-uproot-methods/trunk/PKGBUILD ----------+ PKGBUILD | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-03-10 14:23:15 UTC (rev 887217) +++ PKGBUILD 2021-03-10 14:37:48 UTC (rev 887218) @@ -1,7 +1,7 @@ # Maintainer: Konstantin Gizdov <arch at kge dot pw> -_pkgname=uproot3-methods -pkgname="${_pkgname}-methods" +_pkgname=uproot-methods +pkgname="python-${_pkgname}" pkgver=0.10.0 pkgrel=1 pkgdesc="Pythonic mix-ins for ROOT classes" @@ -9,29 +9,32 @@ makedepends=('python-setuptools') depends=('python-awkward' 'python-numpy') checkdepends=('python-awkward' 'python-pytest') -replaces=('python-uproot-methods') url="https://github.com/scikit-hep/${_pkgname}" license=('BSD') -source=("${url}/archive/${pkgver}.zip") +source=("${pkgname}::${url}/archive/${pkgver}.zip") sha256sums=('3160bf229db1b27d5dc1568df40d53178eb833c365a1b1c2aea9fef07e843d20') +get_pyver () { + python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))' +} + build() { - cd "${srcdir}/${_pkgname}-${pkgver}" + cd "${srcdir}/uproot3-methods-${pkgver}" python setup.py build } check() { - cd "${srcdir}/${_pkgname}-${pkgver}" + cd "${srcdir}/uproot3-methods-${pkgver}" pytest } package() { - cd "${srcdir}/${_pkgname}-${pkgver}" + cd "${srcdir}/uproot3-methods-${pkgver}" python setup.py install --root="${pkgdir}/" --optimize=1 install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - install -D README.rst "${pkgdir}/usr/share/${pkgname}/README.rst" + ln -s "/usr/lib/python$(get_pyver)/site-packages/uproot3_methods" "${pkgdir}/usr/lib/python$(get_pyver)/site-packages/uproot_methods" }