blob: 8cb3fd32dee036596b3c199df63a5891e7380ccb (
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
37
38
39
40
41
42
43
44
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=python-xmldiff-git
pkgver=3.0b1.r1.g43815ee
pkgrel=2
pkgdesc='A library and command line utility for diffing xml'
url='https://github.com/Shoobx/xmldiff'
license=('MIT')
arch=(any)
depends=(
python
python-lxml
)
makedepends=(
git
python-build
python-installer
python-wheel
python-setuptools
)
provides=("${pkgname%-git}" xmldiff)
conflicts=("${pkgname%-git}" xmldiff)
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
python -m build --wheel --no-isolation
}
# check() {
# cd "$pkgname"
# python setup.py test
# }
package() {
cd "$pkgname"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
|