blob: 4305e54e9f59f4e9fd32406286d6510e6683b94b (
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
|
# Maintainer: Goncalo Pereira <goncalo_pereira@outlook.pt>
pkgname=python-kintree
_name=${pkgname#python-}
pkgver=1.1.4
pkgrel=6
pkgdesc="Fast part creation in KiCad and InvenTree"
url="https://github.com/sparkmicro/Ki-nTree"
depends=(
'python'
'python-digikey-api'
'python-flet'
'python-thefuzz'
'python-inventree'
'python-kiutils'
'python-mouser'
'python-multiprocess'
'python-yaml'
'python-validators'
'python-wrapt-timeout-decorator'
)
makedepends=(python-build python-installer python-wheel)
license=('GPL3')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
"kintree.png"
"kintree.desktop")
sha256sums=('85e7587bcc84018c14db7bde82bc6bb6bd42a4f15c7b6834b43eec45a15ee27c'
'46c5a724fab746f094e2ae73d5aa1f7d8b91446d6c841ec3a4f134f64c6277d8'
'7e95214b781f866ebbbf64510eb956337907f824b0a18691ca0b37766ef817d4')
build() {
cd "$srcdir/$_name-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
chmod 777 -R $pkgdir
# Desktop file
install -Dm644 "../${_name}.desktop"\
"${pkgdir}/usr/share/applications/${_name}.desktop"
# Icon file
install -Dm644 "../kintree.png"\
"${pkgdir}/usr/share/pixmaps/${_name}.png"
}
|