blob: 14ecd7b5ee437cb47ce959845e43919fe9840511 (
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.6
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=('1f6c6848d730b083601618f7fb3391105d2e0536d5aeac600c04c13dbb603305b7aa286edff7bb712caa70a9c6a479519821d70e7c093f3a4a8d189ec52776f0')
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:
|