blob: 2f852b3eaf9e183147f6da95b78d74f2678f5d25 (
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
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=python-kicad-snapshot
_name=${pkgname#python-}
pkgver=1.0.6
pkgrel=1
pkgdesc="Snapshot and visual diff tool for KiCad projects"
provides=(${pkgname})
conflicts=(${pkgname})
arch=('any')
url="https://github.com/tanakamasayuki/kicad-snapshot"
_pydeps=(
numpy
platformdirs
)
depends=(
'pyside6'
'python'
"${_pydeps[@]/#/python-}"
)
makedepends=(
'git'
'python-hatchling'
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
optdepends=(
"kicad: Electronic schematic and printed circuit board (PCB) design tools"
)
license=('MIT')
source=("${_name}::git+${url}.git#tag=v$pkgver")
sha256sums=('f70dc641eef055f88801aeb84cf72938acb470f12504253282f0b18eea3cfdec')
prepare() {
git -C "${srcdir}/${_name}" clean -dfx
}
build() {
cd "${srcdir}/${_name}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_name}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -vDm0644 *.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
install -vDm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|