blob: 50ce971ecf6d942bffb7dbc2c6860d1bf00a75ce (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Maintainer: Claudia Pellegrino <aur ät cpellegrino.de>
pkgname=python-ink-extensions-git
_gitpkgname=ink_extensions
pkgver=2.2.0.r0.gf322527
pkgrel=2
pkgdesc='Python dependencies for running Inkscape extensions outside of Inkscape'
arch=('any')
url='https://github.com/evil-mad/ink_extensions'
license=('GPL-2.0-only')
depends=('python' 'python-lxml')
makedepends=(
'git'
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
checkdepends=('python-mock' 'python-pytest')
provides=("python-ink-extensions=${pkgver}")
conflicts=('python-ink-extensions')
options=('!debug' '!strip')
source=(
"${_gitpkgname}::git+https://github.com/evil-mad/ink_extensions.git"
)
sha512sums=(
'SKIP'
)
pkgver() {
cd "${_gitpkgname}"
git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${srcdir}/${_gitpkgname}"
# https://github.com/pypa/setuptools/issues/1347
git clean -dfx
}
build() {
cd "${srcdir}/${_gitpkgname}"
python -m build --wheel --no-isolation
}
check() {
cd "${srcdir}/${_gitpkgname}"
pytest
}
package() {
cd "${srcdir}/${_gitpkgname}"
python -I -m installer --destdir="${pkgdir}" dist/*.whl
echo >&2 'Packaging README.md'
install -D -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" \
"${srcdir}/${_gitpkgname}/README.md"
echo >&2 'Packaging the license'
install -D -m 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" \
"${srcdir}/${_gitpkgname}/LICENSE"
}
|