Bump to 10.5.2

This commit is contained in:
Damien 2022-07-16 02:04:08 +02:00
parent b7d8c81517
commit 448eb4281f
2 changed files with 12 additions and 13 deletions

View file

@ -1,12 +1,15 @@
pkgbase = hg-evolve
pkgdesc = Flexible evolution of Mercurial history
pkgver = 10.5.1
pkgver = 10.5.2
pkgrel = 1
url = https://www.mercurial-scm.org/doc/evolution/
arch = any
license = GPL2
makedepends = python-build
makedepends = python-installer
makedepends = python-wheel
depends = mercurial
source = https://files.pythonhosted.org/packages/source/h/hg-evolve/hg-evolve-10.5.1.tar.gz
sha512sums = 441f3e7f8f8be84b476e5a44a617e4318ba444d172cfa91b91c75fbdf231a79c6049a6215709da952a253341bee4c8526cbf724d13ce856ba5d221ff0880a63f
source = https://files.pythonhosted.org/packages/source/h/hg-evolve/hg-evolve-10.5.2.tar.gz
sha512sums = 81a1cc1202ffaf364fde70c6a36e32330e93aa69c9b9f7e11fbc11f988f7fb302d8b79414c644d274fedb7f0a67e10c4344c0206a1424f2bb97ae2cb11a51315
pkgname = hg-evolve

View file

@ -1,38 +1,34 @@
# Maintainer: Damien Molinier <damien-43\N{COMMERCIAL AT}gmx.fr>
pkgname=hg-evolve
pkgver=10.5.1
pkgver=10.5.2
pkgrel=1
pkgdesc='Flexible evolution of Mercurial history'
arch=('any')
license=('GPL2')
depends=('mercurial')
makedepends=('python-build' 'python-installer' 'python-wheel')
#groups=('hgext')
url='https://www.mercurial-scm.org/doc/evolution/'
source=("https://files.pythonhosted.org/packages/source/h/hg-evolve/hg-evolve-${pkgver}.tar.gz")
sha512sums=('441f3e7f8f8be84b476e5a44a617e4318ba444d172cfa91b91c75fbdf231a79c6049a6215709da952a253341bee4c8526cbf724d13ce856ba5d221ff0880a63f')
_pyexe() {
local _pyexe=$(hg debuginstall -T '{pythonexe}')
command -v $_pyexe >/dev/null || _pyexe=python
printf '%s' "$_pyexe"
}
sha512sums=('81a1cc1202ffaf364fde70c6a36e32330e93aa69c9b9f7e11fbc11f988f7fb302d8b79414c644d274fedb7f0a67e10c4344c0206a1424f2bb97ae2cb11a51315')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
check() {
# Tests depend of Mercurial sources
if [[ -n "${HGSRC}" ]]; then
cd "${srcdir}/${pkgname}-${pkgver}/tests"
"$(_pyexe)" "${HGSRC}/tests/run-tests.py"
python "${HGSRC}/tests/run-tests.py"
fi
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
"$(_pyexe)" setup.py install --optimize=1 --prefix=/usr --root="${pkgdir}"
python -m installer --destdir="$pkgdir" dist/*.whl
rm -f "${pkgdir}/usr/lib/python"*"/site-packages/hgext3rd/"{__pycache__/,}"__init__"*".py"{,o,c}
}