blob: 91b4ade814c47f106bb32dabbc367c33330c8ce4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Damien Molinier <damien-43\N{COMMERCIAL AT}gmx.fr>
pkgname=hg-evolve
pkgver=11.1.5
pkgrel=1
pkgdesc='Flexible evolution of Mercurial history'
arch=('any')
license=('GPL-2.0-or-later')
depends=('mercurial')
makedepends=('python-build' 'python-installer' 'python-wheel'
'python-setuptools')
#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=('f3cf0614d8ed42215f475a6e472604303c055f819912d71ce1d885da7ad05dace2c5642fe21c62120b7f95e588833a5fb84e25db42016db1ab79173c8601510e')
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"
python "${HGSRC}/tests/run-tests.py"
fi
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
rm -f "${pkgdir}/usr/lib/python"*"/site-packages/hgext3rd/"{__pycache__/,}"__init__"*".py"{,o,c}
}
# vim:set ts=2 sw=2 et:
|