blob: 0247c04b5e469ab608b13a42945506f808f067a3 (
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
79
80
|
# Maintainer:
# Contributor: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
pkgname=sparrow-wifi-git
pkgver=r189.7521e4d
pkgrel=1
pkgdesc="Next-Gen GUI-based WiFi and Bluetooth Analyzer for Linux"
arch=('any')
url="https://github.com/ghostop14/sparrow-wifi"
license=('GPL3')
depends=('aircrack-ng'
'iw'
'polkit'
'python-dateutil'
'python-gps3'
'python-manuf'
'python-matplotlib'
'python-numpy'
'python-pyqt5-chart'
'python-pyqt5-sip'
'python-qscintilla-qt5'
'qt5-declarative'
'tk'
'wireless_tools')
makedepends=('git')
optdepends=('gpsd: GPS support'
'bluez-utils-compat: Blueooth-support'
'ubertooth: Ubertooth support'
'python-dronekit: Drone communication support'
'net-tools: for rpi.monitor_3dr script'
'python-elasticsearch'
'python-pytz')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
backup=("opt/${pkgname%-git}/sparrowwifiagent.cfg")
install="${pkgname%-git}.install"
source=('git+https://github.com/ghostop14/sparrow-wifi.git'
"${pkgname%-git}.desktop"
"${pkgname%-git}.sh"
"org.freedesktop.${pkgname%-git}.policy")
sha256sums=('SKIP'
'ec12b01c211e0860c478db732d7328358c0aa8be195168d569902ce159c44d29'
'a481414dc5a34589ca116ae29e4ba062cf773f398356fc73c60501340213525b'
'eba6a05241ff1e5a892b76c751160449bef1cbc4b6501278badef756c89d6a8e')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname%-git}"
sed -i 's|service gpsd status|systemctl status gpsd|g' scripts/*.sh
sed -i 's|service gpsd stop|systemctl stop gpsd|g' scripts/*.sh
}
package() {
cd "$srcdir/${pkgname%-git}"
install -Dm644 sparrowwifiagent.cfg.sample \
"$pkgdir/opt/${pkgname%-git}/sparrowwifiagent.cfg"
cp -r *.py scripts "$pkgdir/opt/${pkgname%-git}"
python -O -m compileall "$pkgdir/opt/${pkgname%-git}"
install -Dm644 docs/* README.md -t "${pkgdir}/usr/share/doc/${pkgname%-git}"
install -Dm644 wifi_icon.png "${pkgdir}/usr/share/pixmaps/${pkgname%-git}.png"
install -Dm644 "$srcdir/${pkgname%-git}.desktop" -t \
"${pkgdir}/usr/share/applications"
install -Dm755 "$srcdir/${pkgname%-git}.sh" "$pkgdir/usr/bin/${pkgname%-git}"
install -Dm644 "$srcdir/org.freedesktop.${pkgname%-git}.policy" -t \
"$pkgdir/usr/share/polkit-1/actions"
ln -s /opt/sparrow-wifi/scripts/rpi.sparrowagentstart.sh \
"$pkgdir/usr/bin/rpi.sparrowagentstart"
ln -s /opt/sparrow-wifi/scripts/rpi.sparrowagentstop.sh \
"$pkgdir/usr/bin/rpi.sparrowagentstop"
ln -s /opt/sparrow-wifi/scripts/rpi.monitor_3dr.sh \
"$pkgdir/usr/bin/rpi.monitor_3dr"
}
|