blob: 7c46f543e61fc8122ec04a55b20ac71de2406a93 (
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
|
# Maintainer: Claudia Pellegrino <aur ät cpellegrino.de>
pkgname=python-plotink
_gitpkgname=plotink
pkgver=1.11.2
pkgrel=2
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=(
'490748d6044b1ac2e4e90692d7e78c282ccb014e87e64378a28169789ca44e7bde7ab8da71b94dc901f105992fa3cc44038fb72c29826aac55a506ff0b093a6a'
)
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"
}
|