-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
103 lines (93 loc) · 2.04 KB
/
snapcraft.yaml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: rtlsdr
summary: Tools for RTL2832 based SDR receivers
description: |
Turns your Realtek RTL2832 based DVB dongle into a SDR receiver.
For more information see: https://osmocom.org/projects/rtl-sdr
license: GPL-2.0
website: https://github.com/albertodonato/rtlsdr-snap
source-code: https://github.com/albertodonato/rtlsdr-snap
contact: https://github.com/albertodonato/rtlsdr-snap/issues
issues: https://github.com/albertodonato/rtlsdr-snap/issues
confinement: strict
grade: stable
base: core24
adopt-info: rtl-sdr
apps:
adsb:
command: usr/bin/rtl_adsb
plugs:
- home
- network-observe
- raw-usb
biast:
command: usr/bin/rtl_biast
plugs:
- home
- network-observe
- raw-usb
eeprom:
command: usr/bin/rtl_eeprom
plugs:
- home
- network-observe
- raw-usb
fm:
command: usr/bin/rtl_fm
plugs:
- home
- network-observe
- raw-usb
power:
command: usr/bin/rtl_power
plugs:
- home
- network-observe
- raw-usb
sdr:
command: usr/bin/rtl_sdr
plugs:
- home
- network-observe
- raw-usb
tcp:
command: usr/bin/rtl_tcp
plugs:
- home
- network-bind
- raw-usb
tcp-service:
command: usr/bin/rtl_tcp
daemon: simple
install-mode: disable
plugs:
- home
- network-bind
- raw-usb
test:
command: usr/bin/rtl_test
plugs:
- home
- network-observe
- raw-usb
parts:
rtl-sdr:
plugin: cmake
source: https://gitea.osmocom.org/sdr/rtl-sdr
source-type: git
source-tag: v2.0.2
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/usr
- -DDETACH_KERNEL_DRIVER=ON
- -DENABLE_ZEROCOPY=ON
build-packages:
- pkg-config
- libusb-1.0-0-dev
stage-packages:
- libusb-1.0-0
override-build: |
craftctl default
craftctl set version=$(git -C $CRAFT_PART_SRC describe --tags HEAD)
prime:
- usr/bin/
- usr/lib/*-linux-gnu/librtlsdr.so*
- usr/lib/*-linux-gnu/libusb-1.0.so*