Date: Sunday, January 15, 2023 @ 10:51:41 Author: alucryd Revision: 1383613
python-aenum 3.1.11-2: remove hardcoded python version Modified: python-aenum/trunk/PKGBUILD ----------+ PKGBUILD | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-01-15 10:46:33 UTC (rev 1383612) +++ PKGBUILD 2023-01-15 10:51:41 UTC (rev 1383613) @@ -4,7 +4,7 @@ pkgname=python-aenum pkgver=3.1.11 -pkgrel=1 +pkgrel=2 pkgdesc='Advanced Enumerations for Python' arch=(any) url=https://github.com/ethanfurman/aenum @@ -14,8 +14,8 @@ git python-setuptools ) -_commit=22585c38409cc02d4dc19aa75c7f2c9482fdb47c -source=(git+https://github.com/ethanfurman/aenum.git#commit=${_commit}) +_tag=22585c38409cc02d4dc19aa75c7f2c9482fdb47c +source=(git+https://github.com/ethanfurman/aenum.git#tag=${_tag}) b2sums=(SKIP) prepare() { @@ -31,9 +31,10 @@ cd aenum python setup.py install --root="${pkgdir}" --optimize=1 --skip-build install -dm 755 "${pkgdir}"/usr/share/{doc,licenses/python-aenum} - mv "${pkgdir}"/usr/lib/python3.10/site-packages/aenum/doc "${pkgdir}"/usr/share/doc/python-aenum - mv "${pkgdir}"/usr/lib/python3.10/site-packages/aenum/CHANGES "${pkgdir}"/usr/share/doc/python-aenum/ - mv "${pkgdir}"/usr/lib/python3.10/site-packages/aenum/LICENSE "${pkgdir}"/usr/share/licenses/python-aenum/ + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + mv "${pkgdir}"${site_packages}/aenum/doc "${pkgdir}"/usr/share/doc/python-aenum + mv "${pkgdir}"${site_packages}/aenum/CHANGES "${pkgdir}"/usr/share/doc/python-aenum/ + mv "${pkgdir}"${site_packages}/aenum/LICENSE "${pkgdir}"/usr/share/licenses/python-aenum/ } # vim: ts=2 sw=2 et:
