You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

41 lines
1.2 KiB

  1. #!/bin/bash -e
  2. on_chroot << EOF
  3. mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software"
  4. cd "/home/${FIRST_USER_NAME}/PiSDR/Software"
  5. if [ ! -d "SDRPlusPlus" ]; then
  6. git clone --single-branch --branch 1.0.4 --depth 1 https://github.com/AlexandreRouma/SDRPlusPlus.git
  7. fi
  8. cd SDRPlusPlus
  9. bash ./create_root.sh
  10. mkdir -p build
  11. cd build
  12. cmake -DOPT_BUILD_AIRSPY_SOURCE=ON \
  13. -DOPT_BUILD_AIRSPYHF_SOURCE=ON \
  14. -DOPT_BUILD_FILE_SOURCE=ON \
  15. -DOPT_BUILD_HACKRF_SOURCE=ON \
  16. -DOPT_BUILD_LIMESDR_SOURCE=ON \
  17. -DOPT_BUILD_RTL_SDR_SOURCE=ON \
  18. -DOPT_BUILD_RTL_TCP_SOURCE=ON \
  19. -DOPT_BUILD_SDRPLAY_SOURCE=ON \
  20. -DOPT_BUILD_SOAPY_SOURCE=ON \
  21. -DOPT_BUILD_SPYSERVER_SOURCE=ON \
  22. -DOPT_BUILD_PLUTOSDR_SOURCE=ON \
  23. -DOPT_BUILD_AUDIO_SINK=ON \
  24. -DOPT_BUILD_NETWORK_SINK=ON \
  25. -DOPT_BUILD_NEW_PORTAUDIO_SINK=ON \
  26. -DOPT_BUILD_M17_DECODER=ON \
  27. -DOPT_BUILD_METEOR_DEMODULATOR=ON \
  28. -DOPT_BUILD_RADIO=ON \
  29. -DOPT_BUILD_DISCORD_PRESENCE=ON \
  30. -DOPT_BUILD_FREQUENCY_MANAGER=ON \
  31. -DOPT_BUILD_RECORDER=ON \
  32. -DOPT_BUILD_RIGCTL_SERVER=ON \
  33. -GNinja ..
  34. ninja install
  35. ldconfig
  36. cd ..
  37. rm -fr build
  38. EOF