blob: c7599d79b43f0d32b05a0886da096edfdf753284 (
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.12.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=('0ba42361fff263bd37477980f1bb8ade563f3886dcf2681df346408e49e2a2ce3b9d88c1026d2058077c5d8f4ff54a3a94b581a3353889483a0fd25d1bc9935c')
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"
}
|