blob: 15648b385eac58cabaa046b067393a10afe0df2e (
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
51
52
53
54
55
56
57
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=python-comtool-git
pkgver=3.2.1.r0.gd7bb5aa
pkgrel=1
epoch=
pkgdesc="A cross platform serial debug tools written by python"
arch=('any')
url="https://github.com/Neutree/COMTool"
license=('LGPL3.0')
groups=()
depends=('python' 'python-pyqt5' 'python-pyserial' 'python-requests' 'python-babel' 'python-qtawesome' 'python-paramiko' 'python-pyte' 'python-pyperclip' 'python-coloredlogs' 'python-pyqtgraph')
makedepends=('python-build' 'python-installer' 'python-wheel' 'git')
checkdepends=()
optdepends=()
provides=('COMTool')
conflicts=('comtool' 'python-comtool')
replaces=()
backup=()
options=('!strip')
install=
changelog=
source=("git+${url}.git")
noextract=()
sha256sums=('SKIP')
#validpgpkeys=()
pkgver() {
cd "${srcdir}/COMTool"
git describe --long --tags | sed 's/v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/COMTool"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/COMTool"
python -m installer --destdir="${pkgdir}" dist/*.whl
rm -rf "${pkgdir}/usr/LICENSE"
rm -rf "${pkgdir}/usr/README.MD"
install -Dm0644 "${srcdir}/COMTool/COMTool/assets/logo.png" "${pkgdir}/usr/share/pixmaps/comtool.png"
install -Dm0644 /dev/stdin "${pkgdir}/usr/share/applications/io.github.neutree.comtool.desktop" << EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=ComTool
Comment=comtool serial communication debug tool
Exec=comtool %U
Icon=comtool.png
Categories=Development;
Terminal=false
StartupNotify=true
MimeType=application/x-executable;
EOF
}
|