blob: 7e2adca2704425d5e956b1831fe0771bd7212c31 (
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
|
# Maintainer: Claudia Pellegrino <aur ät cpellegrino.de>
pkgname=python-plotink
_gitpkgname=plotink
pkgver=1.14.0
pkgrel=1
pkgdesc='Common files for Inkscape extensions to drive EggBot, WaterColorBot, and similar plotter-type machines'
arch=('any')
url='https://github.com/evil-mad/plotink'
license=('MIT')
depends=(
'python'
'python-mpmath'
'python-packaging'
'python-pyserial'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
options=('!debug' '!strip')
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/evil-mad/plotink/archive/refs/tags/v${pkgver}.tar.gz"
)
sha512sums=('870e02a75e5093a568050db86d955136c36463e2ece756c79ebad2cc09d4682521fab4c28496e9210e6f19be84de2aa30352f626836b649bcfe94974a35f498e')
build() {
cd "${srcdir}/${_gitpkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_gitpkgname}-${pkgver}"
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}-${pkgver}/README.md"
echo >&2 'Packaging the license'
install -D -m 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" \
"${srcdir}/${_gitpkgname}-${pkgver}/LICENSE"
}
|