2
2
3
3
# Create directory structure
4
4
echo Create directory structure
5
- mkdir sdrpp_deb
6
- mkdir sdrpp_deb /DEBIAN
7
- mkdir sdrpp_deb /usr
8
- mkdir sdrpp_deb /usr/bin
9
- mkdir sdrpp_deb /usr/share
10
- mkdir sdrpp_deb /usr/share/sdrpp
11
- mkdir sdrpp_deb /usr/lib
12
- mkdir sdrpp_deb /usr/lib/sdrpp
13
- mkdir sdrpp_deb /usr/lib/sdrpp/plugins
5
+ mkdir sdrpp_debian_amd64
6
+ mkdir sdrpp_debian_amd64 /DEBIAN
7
+ mkdir sdrpp_debian_amd64 /usr
8
+ mkdir sdrpp_debian_amd64 /usr/bin
9
+ mkdir sdrpp_debian_amd64 /usr/share
10
+ mkdir sdrpp_debian_amd64 /usr/share/sdrpp
11
+ mkdir sdrpp_debian_amd64 /usr/lib
12
+ mkdir sdrpp_debian_amd64 /usr/lib/sdrpp
13
+ mkdir sdrpp_debian_amd64 /usr/lib/sdrpp/plugins
14
14
15
15
# Create package info
16
16
echo Create package info
17
- echo Package: sdrpp >> sdrpp_deb /DEBIAN/control
18
- echo Version: 0.2.5 >> sdrpp_deb /DEBIAN/control
19
- echo Maintainer: Ryzerth >> sdrpp_deb /DEBIAN/control
20
- echo Architecture: all >> sdrpp_deb /DEBIAN/control
21
- echo Description: Bloat-free SDR receiver software >> sdrpp_deb /DEBIAN/control
17
+ echo Package: sdrpp >> sdrpp_debian_amd64 /DEBIAN/control
18
+ echo Version: 0.2.5 >> sdrpp_debian_amd64 /DEBIAN/control
19
+ echo Maintainer: Ryzerth >> sdrpp_debian_amd64 /DEBIAN/control
20
+ echo Architecture: all >> sdrpp_debian_amd64 /DEBIAN/control
21
+ echo Description: Bloat-free SDR receiver software >> sdrpp_debian_amd64 /DEBIAN/control
22
22
23
23
# Copy core files
24
24
echo Copy core files
25
- cp $1 /sdrpp sdrpp_deb /usr/bin/
26
- cp $1 /libsdrpp_core.so sdrpp_deb /usr/lib/
25
+ cp $1 /sdrpp sdrpp_debian_amd64 /usr/bin/
26
+ cp $1 /libsdrpp_core.so sdrpp_debian_amd64 /usr/lib/
27
27
28
28
# Copy reasources
29
29
echo Copy reasources
30
- cp -r root/res/* sdrpp_deb /usr/share/sdrpp/
30
+ cp -r root/res/* sdrpp_debian_amd64 /usr/share/sdrpp/
31
31
32
32
# Copy module
33
33
echo Copy modules
34
- cp $1 /radio/radio.so sdrpp_deb /usr/lib/sdrpp/plugins/
35
- cp $1 /recorder/recorder.so sdrpp_deb /usr/lib/sdrpp/plugins/
36
- cp $1 /airspyhf_source/airspyhf_source.so sdrpp_deb /usr/lib/sdrpp/plugins/
37
- cp $1 /plutosdr_source/plutosdr_source.so sdrpp_deb /usr/lib/sdrpp/plugins/
38
- cp $1 /rtl_tcp_source/rtl_tcp_source.so sdrpp_deb /usr/lib/sdrpp/plugins/
39
- cp $1 /soapy_source/soapy_source.so sdrpp_deb /usr/lib/sdrpp/plugins/
40
- cp $1 /audio_sink/audio_sink.so sdrpp_deb /usr/lib/sdrpp/plugins/
34
+ cp $1 /radio/radio.so sdrpp_debian_amd64 /usr/lib/sdrpp/plugins/
35
+ cp $1 /recorder/recorder.so sdrpp_debian_amd64 /usr/lib/sdrpp/plugins/
36
+ cp $1 /airspyhf_source/airspyhf_source.so sdrpp_debian_amd64 /usr/lib/sdrpp/plugins/
37
+ cp $1 /plutosdr_source/plutosdr_source.so sdrpp_debian_amd64 /usr/lib/sdrpp/plugins/
38
+ cp $1 /rtl_tcp_source/rtl_tcp_source.so sdrpp_debian_amd64 /usr/lib/sdrpp/plugins/
39
+ cp $1 /soapy_source/soapy_source.so sdrpp_debian_amd64 /usr/lib/sdrpp/plugins/
40
+ cp $1 /audio_sink/audio_sink.so sdrpp_debian_amd64 /usr/lib/sdrpp/plugins/
41
41
42
42
# Create package
43
43
echo Create packagesudo
44
- dpkg-deb --build sdrpp_deb
44
+ dpkg-deb --build sdrpp_debian_amd64
45
+
46
+ # Cleanup
47
+ echo Cleanup
48
+ rm -rf sdrpp_debian_amd64
0 commit comments