blob: 465ea4454737627a018620761b447abaadf55c73 (
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
|
# Maintainer:
## links
# https://aresvalley.com/
# https://aresvalley.github.io/Artemis/
# https://github.com/AresValley/Artemis
_pkgname="artemis-manual"
pkgname="$_pkgname"
pkgver=4.1.0
pkgrel=1
pkgdesc="Radio Signals Recognition Manual"
url="https://github.com/AresValley/Artemis"
license=('GPL-3.0-only')
arch=('x86_64')
depends=(
'pyside6'
'python'
'python-packaging'
'python-requests'
)
_pkgsrc="Artemis-$pkgver"
_pkgext="tar.gz"
source=("$_pkgname-$pkgver.$_pkgext"::"https://github.com/AresValley/Artemis/archive/v$pkgver.$_pkgext")
sha256sums=('19e15685102387e451e4ef4634d181694ae1bb75e58d25c669bdab7a914a7d4d')
package() {
local _files=(
app.py
artemis
config
images
ui
)
install -dm755 "$pkgdir/opt/$_pkgname"
for i in ${_files[@]}; do
cp --reflink=auto -a "$_pkgsrc/$i" "$pkgdir/opt/$_pkgname/"
done
# compile
find "$pkgdir" -name "*.py" -exec python -m py_compile {} \+
# exec
install -Dm755 /dev/stdin "$pkgdir/usr/bin/$_pkgname" << END
#!/usr/bin/env bash
exec python /opt/$_pkgname/app.py
END
# icon
install -Dm644 "$_pkgsrc/images/artemis_icon.svg" "$pkgdir/usr/share/pixmaps/$_pkgname.svg"
# launcher
install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/$_pkgname.desktop" << END
[Desktop Entry]
Type=Application
Name=Artemis
GenericName=Artemis
Comment="Radio Signals Recognition Manual"
Exec=$_pkgname
Icon=$_pkgname
Terminal=false
Categories=Network;HamRadio;
END
chmod -R u+rwX,go+rX,go-w "$pkgdir/"
}
|