blob: 6c122920ae01c503e7b5d0c7b41f0414a6977fca (
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
|
# Maintainer:
## useful links:
# https://aresvalley.com/
# https://aresvalley.github.io/Artemis/
# https://github.com/AresValley/Artemis
# basic info
_pkgname="artemis-manual"
pkgname="$_pkgname"
pkgver=4.0.5
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=('169e5221a5f463c9ca5c09d1e49bda57d45b3070d6db7d0f1ed5b74b91cf4f8b')
package() {
local _files=(
app.py
artemis
artemis.qmlproject
artemis.qrc
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/"
}
|