blob: a3114b3f5d85e6dc24c2bc0f40fd2dbf97fae7c4 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=rttview
_name=RTTView
pkgver=20241201
pkgrel=1
epoch=
pkgdesc="SEGGER-RTT Client for J-LINK and DAPLink"
arch=('any')
url="https://github.com/XIVN1987/RTTView"
license=(MIT)
groups=()
provides=(${pkgname})
conflicts=(${pkgname})
backup=(usr/share/${pkgname}/setting.ini)
depends=(
glibc
sh
zlib
)
_makepydeps=(
hid
requests
six
pyelftools
pyqt5
# pyqt5-chart
pyqt5-webengine
pyusb
)
makedepends=(
# python-build
# python-installer
# python-wheel
# python-setuptools
hidapi
python
pyinstaller
"${_makepydeps[@]/#/python-}"
)
options=('!strip' '!debug')
source=("${_name}-${pkgver}.tar.gz::${url}/archive/refs/tags/$pkgver.tar.gz")
noextract=()
sha256sums=('d176541f8be3b2cf5810015d13c7654442c4774ac519ff14758f47211f99519d')
build() {
cd "${srcdir}/${_name}-${pkgver}"
# python -m build --wheel --no-isolation
pyinstaller --onefil RTTView.py
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
# python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm755 -t ${pkgdir}/usr/share/${pkgname}/ dist/${_name}
install -Dm644 -t ${pkgdir}/usr/share/${pkgname}/ ${_name}.ui
install -Dm644 -t ${pkgdir}/usr/share/${pkgname}/ README.md
install -Dm644 Image/serial.ico ${pkgdir}/usr/share/pixmaps/${pkgname}.ico
install -Dm666 /dev/stdin ${pkgdir}/usr/share/${pkgname}/setting.ini <<EOF
EOF
install -Dm755 /dev/stdin ${pkgdir}/usr/bin/${pkgname} <<EOF
#!/bin/sh
cd /usr/share/${pkgname}/
./${_name} "\$@"
EOF
install -Dm644 /dev/stdin ${pkgdir}/usr/share/applications/${pkgname}.desktop <<EOF
[Desktop Entry]
Name=${pkgdesc}
Comment=${pkgdesc}
Exec=${pkgname}
Terminal=false
Type=Application
StartupNotify=true
Categories=Electronics;Engineering;Science;
Icon=${pkgname}
EOF
}
|