Guest User

Untitled

a guest
Mar 12th, 2024
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 17.26 KB | Source Code | 0 0
  1. name: sdrangel
  2. base: core22
  3. type: app
  4. version: "7.19.0"
  5. summary: SDRangel
  6. description: SDRangel is an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
  7. confinement: strict
  8. grade: stable
  9. license: GPL-3.0
  10. issues: https://github.com/f4exb/sdrangel/issues
  11. source-code: https://github.com/f4exb/sdrangel
  12. website: https://www.sdrangel.org/
  13.  
  14. apps:
  15.     sdrangel:
  16.         command: bin/sdrangel_wrapper.sh
  17.         plugs:
  18.            - network
  19.             - network-bind
  20.             - network-manager
  21.             - desktop
  22.             - desktop-legacy
  23.             - wayland
  24.             - home
  25.             - unity7
  26.             - opengl
  27.             - raw-usb
  28.             - hardware-observe
  29.             - audio-playback
  30.             - audio-record
  31.             - joystick
  32.             - camera
  33.             - browser-support
  34.             - pulseaudio
  35.             - alsa
  36.             - jack1
  37.             - removable-media
  38.             - gsettings
  39.             - location-observe
  40.             - serial-port
  41.         environment:
  42.             LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/opt/install/sdrangel/lib/sdrangel:$SNAP/opt/install/sdrangel/lib:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/blas:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/lapack
  43.         #extensions:
  44.         #    - kde-neon
  45.  
  46.     sdrangelsrv:
  47.         command: opt/install/sdrangel/bin/sdrangelsrv
  48.         plugs:
  49.            - network
  50.             - network-bind
  51.             - network-manager
  52.             - home
  53.             - raw-usb
  54.             - hardware-observe
  55.             - removable-media
  56.         environment:
  57.             LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/opt/install/sdrangel/lib/sdrangel
  58.  
  59.  
  60. layout:
  61.     /usr/lib/x86_64-linux-gnu/qt5:
  62.         bind: $SNAP/usr/lib/x86_64-linux-gnu/qt5
  63.     /usr/share/qt5:
  64.         bind: $SNAP/usr/share/qt5
  65.  
  66. parts:
  67.     cleanup:
  68.         after:
  69.            - sdrangel
  70.         plugin: nil
  71.         build-snaps: # List all content-snaps and base snaps you're using here
  72.             - core22
  73.             #- kde-frameworks-5-102-qt-5-15-8-core22
  74.         override-prime: |
  75.            set -eux
  76.             for snap in "core22" ; do  # List all content-snaps and base snaps you're using here
  77.                 cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" \;
  78.             done
  79.  
  80.     launcher:
  81.         plugin: dump
  82.         source: snap/local
  83.         organize:
  84.             sdrangel_wrapper.sh: bin/
  85.             locale-gen: bin/
  86.  
  87.     sdrangel:
  88.         plugin: cmake
  89.         source: https://github.com/f4exb/sdrangel
  90.         source-type: git
  91.         source-tag: v7.19.0
  92.         after: [apt, libdab, mbelib, serialdv, dsdcc, codec2, sgp4, cm265cc, libsigmf, airspy, rtlsdr, pluto, bladerf, hackrf, limesuite, airspyhf, uhd, uhdfpga, soapysdr, soapyremote]
  93.         cmake-parameters:
  94.            - -DDEBUG_OUTPUT=ON
  95.             - -DBUILD_TYPE=RELEASE
  96.             - -DRX_SAMPLE_24BIT=ON
  97.             - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  98.             - -DMIRISDR_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  99.             - -DAIRSPY_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  100.             - -DAIRSPYHF_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  101.             - -DBLADERF_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  102.             - -DHACKRF_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  103.             - -DRTLSDR_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  104.             - -DLIMESUITE_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  105.             - -DIIO_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  106.             - -DPERSEUS_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  107.             - -DXTRX_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  108.             - -DSOAPYSDR_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  109.             - -DUHD_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  110.             - -DAPT_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  111.             - -DCM256CC_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  112.             - -DDSDCC_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  113.             - -DSERIALDV_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  114.             - -DMBE_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  115.             - -DCODEC2_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  116.             - -DSGP4_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  117.             - -DLIBSIGMF_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  118.             - -DDAB_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel
  119.             #- -DQt5_DIR=/usr/lib/x86_64-linux-gnu/cmake/Qt5
  120.         build-packages:
  121.            - libfftw3-dev
  122.             - libusb-1.0-0-dev
  123.             - libusb-dev
  124.             - libhidapi-dev
  125.             - qtbase5-dev
  126.             - qtchooser
  127.             - qtmultimedia5-dev
  128.             - libqt5websockets5-dev
  129.             - qttools5-dev
  130.             - qttools5-dev-tools
  131.             - libqt5opengl5-dev
  132.             - libqt5quick5
  133.             - libqt5serialport5-dev
  134.             - qtdeclarative5-dev
  135.             - qtpositioning5-dev
  136.             - qtlocation5-dev
  137.             - qtwebengine5-dev
  138.             - qtbase5-private-dev
  139.             - libqt5svg5-dev
  140.             - libqt5charts5-dev
  141.             - libqt5texttospeech5-dev
  142.             - libqt5gamepad5-dev
  143.             - libfaad-dev
  144.             - zlib1g-dev
  145.             - libboost-all-dev
  146.             - libasound2-dev
  147.             - pulseaudio
  148.             - libopencv-dev
  149.             - libxml2-dev
  150.             - bison
  151.             - flex
  152.             - ffmpeg
  153.             - libavcodec-dev
  154.             - libavformat-dev
  155.             - libopus-dev
  156.             - doxygen
  157.             - graphviz
  158.         stage-packages:
  159.            - libgl1-mesa-dri
  160.             - libgl1-mesa-glx
  161.             - libqt5core5a
  162.             - libqt5gui5
  163.             - libqt5network5
  164.             - libqt5widgets5
  165.             - libqt5multimedia5
  166.             - libqt5multimedia5-plugins
  167.             - libqt5positioning5
  168.             - libqt5positioning5-plugins
  169.             - libqt5location5
  170.             - libqt5location5-plugins
  171.             - libqt5location5-plugin-mapboxgl
  172.             - libqt5websockets5
  173.             - libqt5qml5
  174.             - libqt5quick5
  175.             - libqt5quickwidgets5
  176.             - libqt5printsupport5
  177.             - libqt5webchannel5
  178.             - libqt5webenginecore5
  179.             - libqt5webenginewidgets5
  180.             - libqt5serialport5
  181.             - libqt5charts5
  182.             - libqt5texttospeech5
  183.             - libqt5gamepad5
  184.             - libqt5dbus5
  185.             - libqt5sql5
  186.             - libqt5sql5-mysql
  187.             - libqt5sql5-sqlite
  188.             - libqt5svg5
  189.             - qml-module-qtlocation
  190.             - qml-module-qtpositioning
  191.             - qml-module-qtquick-window2
  192.             - qml-module-qtquick-dialogs
  193.             - qml-module-qtquick-controls
  194.             - qml-module-qtquick-controls2
  195.             - qml-module-qtquick-layouts
  196.             - libgraphite2-3
  197.             - libpcre2-16-0
  198.             - libicu70
  199.             - libxcb1
  200.             - libharfbuzz0b
  201.             - libx11-6
  202.             - libxau6
  203.             - libglx0
  204.             - libmd4c0
  205.             - libusb-1.0-0
  206.             - libfaad2
  207.             - libfftw3-single3
  208.             - libhidapi-libusb0
  209.             - libasyncns0
  210.             - libogg0
  211.             - libopus0
  212.             - libpulse0
  213.             - libsndfile1
  214.             - libvorbis0a
  215.             - libvorbisenc2
  216.             - ocl-icd-libopencl1
  217.             - libaom3
  218.             - libavcodec58
  219.             - libavformat58
  220.             - libavutil56
  221.             - libbluray2
  222.             - libcairo-gobject2
  223.             - libcairo2
  224.             - libchromaprint1
  225.             - libdatrie1
  226.             - libdav1d5
  227.             - libfribidi0
  228.             - libgme0
  229.             - libgomp1
  230.             - libgsm1
  231.             - libmfx1
  232.             - libmp3lame0
  233.             - libmpg123-0
  234.             - libnorm1
  235.             - libopenjp2-7
  236.             - libopenmpt0
  237.             - libpangoft2-1.0-0
  238.             - libpgm-5.3-0
  239.             - libpixman-1-0
  240.             - librabbitmq4
  241.             - librsvg2-2
  242.             - librsvg2-2
  243.             - libtheora0
  244.             - libswresample3
  245.             - libsrt1.4-gnutls
  246.             - libtwolame0
  247.             - libva-drm2
  248.             - libva-x11-2
  249.             - libva2
  250.             - libvdpau1
  251.             - libwebp7
  252.             - libswscale5
  253.             - libxcomposite1
  254.             - libxdamage1
  255.             - libxrandr2
  256.             - libxtst6
  257.             - libasound2
  258.             - libevent-2.1-7
  259.             - liblcms2-2
  260.             - libminizip1
  261.             - libnspr4
  262.             - libnss3
  263.             - libnspr4
  264.             - libnspr4
  265.             - libre2-9
  266.             - libwebpdemux2
  267.             - libxslt1.1
  268.             - libxdamage1
  269.             - libxrandr2
  270.             - libxtst6
  271.             - libminizip1
  272.             - libwebpdemux2
  273.             - libarmadillo10
  274.             - libhdf4-0-alt
  275.             - libgdal30
  276.             - libhdf4-0-alt
  277.             - libogdi4.1
  278.             - libilmbase25
  279.             - libopenexr25
  280.             - libaec0
  281.             - libarpack2
  282.             - libcfitsio9
  283.             - libcharls2
  284.             - libcurl3-gnutls
  285.             - libcurl4
  286.             - libdc1394-25
  287.             - libde265-0
  288.             - libdw1
  289.             - libexif12
  290.             - libfreexl1
  291.             - libfyba0
  292.             - libgdcm3.0
  293.             - libgeos3.10.2
  294.             - libgeos-c1v5
  295.             - libgeotiff5
  296.             - libgfortran5
  297.             - libgif7
  298.             - libgphoto2-6
  299.             - libgphoto2-port12
  300.             - libgstreamer-plugins-base1.0-0
  301.             - libgstreamer1.0-0
  302.             - libhdf5-103-1
  303.             - libhdf5-hl-100
  304.             - libheif1
  305.             - libkmlbase1
  306.             - libkmldom1
  307.             - libkmlengine1
  308.             - liblapack3
  309.             - libldap-2.5-0
  310.             - liblcms2-2
  311.             - libltdl7
  312.             - libminizip1
  313.             - libmysqlclient21
  314.             - libnetcdf19
  315.             - libnghttp2-14
  316.             - libodbcinst2
  317.             - libopencv-core4.5d
  318.             - libopencv-imgcodecs4.5d
  319.             - libopencv-imgproc4.5d
  320.             - libopencv-videoio4.5d
  321.             - libpoppler118
  322.             - libproj22
  323.             - libpq5
  324.             - libpsl5
  325.             - libqhull-r8.0
  326.             - libquadmath0
  327.             - libraw1394-11
  328.             - librtmp1
  329.             - librttopo1
  330.             - libsasl2-2
  331.             - libspatialite7
  332.             - libsuperlu5
  333.             - libswscale5
  334.             - libsz2
  335.             - libtbb2
  336.             - libunwind8
  337.             - liburiparser1
  338.             - libilmbase25
  339.             - libboost-chrono1.74.0
  340.             - libboost-filesystem1.74.0
  341.             - libboost-serialization1.74.0
  342.             - libboost-thread1.74.0
  343.             - libboost-program-options1.74.0
  344.             - libboost-test1.74.0
  345.  
  346.     apt:
  347.         plugin: cmake
  348.         source: https://github.com/srcejon/aptdec.git
  349.         source-type: git
  350.         source-branch: libaptdec
  351.         cmake-parameters:
  352.            - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  353.  
  354.     libdab:
  355.         plugin: cmake
  356.         source: https://github.com/srcejon/dab-cmdline
  357.         source-type: git
  358.         source-branch: msvc
  359.         source-subdir: library
  360.         cmake-parameters:
  361.            - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  362.  
  363.     mbelib:
  364.         plugin: cmake
  365.         source: https://github.com/szechyjs/mbelib.git
  366.         source-type: git
  367.         source-commit: fe83b32c6a60cdd7bce8cecf3c7a0b9ec87a7667
  368.         cmake-parameters:
  369.            - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  370.  
  371.     serialdv:
  372.         plugin: cmake
  373.         source: https://github.com/f4exb/serialDV.git
  374.         source-type: git
  375.         source-tag: v1.1.4
  376.         cmake-parameters:
  377.            - -DCMAKE_CXX_FLAGS="-std=c++11"
  378.             - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  379.  
  380.     dsdcc:
  381.         plugin: cmake
  382.         source: https://github.com/f4exb/dsdcc.git
  383.         source-type: git
  384.         source-tag: v1.9.5
  385.         after: [mbelib, serialdv]
  386.         cmake-parameters:
  387.            - -DUSE_MBELIB=ON
  388.             - -DCMAKE_CXX_FLAGS="-std=c++11"
  389.             - -DCMAKE_INSTALL_PREFIX=/usr
  390.             - -DLIBMBE_INCLUDE_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel/include
  391.             - -DLIBMBE_LIBRARY=$SNAPCRAFT_STAGE/opt/install/sdrangel/lib/libmbe.so
  392.             - -DLIBSERIALDV_INCLUDE_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel/include/serialdv
  393.             - -DLIBSERIALDV_LIBRARY=$SNAPCRAFT_STAGE/opt/install/sdrangel/lib/libserialdv.so
  394.  
  395.     codec2:
  396.         plugin: cmake
  397.         source: https://github.com/drowe67/codec2-dev.git
  398.         source-type: git
  399.         source-tag: v1.0.3
  400.         build-packages:
  401.            - libspeexdsp-dev
  402.             - libsamplerate0-dev
  403.         cmake-parameters:
  404.            - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  405.  
  406.     sgp4:
  407.         plugin: cmake
  408.         source: https://github.com/dnwrnr/sgp4.git
  409.         source-type: git
  410.         cmake-parameters:
  411.            - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  412.  
  413.     cm265cc:
  414.         plugin: cmake
  415.         source: https://github.com/f4exb/cm256cc.git
  416.         source-type: git
  417.         source-commit: c0e92b92aca3d1d36c990b642b937c64d363c559
  418.         cmake-parameters:
  419.            - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  420.  
  421.     libsigmf:
  422.         plugin: cmake
  423.         source: https://github.com/f4exb/libsigmf.git
  424.         source-type: git
  425.         source-branch: new-namespaces
  426.         cmake-parameters:
  427.            - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  428.  
  429.     airspy:
  430.         plugin: cmake
  431.         source: https://github.com/airspy/airspyone_host.git
  432.         source-type: git
  433.         source-commit: 37c768ce9997b32e7328eb48972a7fda0a1f8554
  434.         build-packages:
  435.            - libusb-1.0-0-dev
  436.         cmake-parameters:
  437.            - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  438.  
  439.     rtlsdr:
  440.         plugin: cmake
  441.         source: https://github.com/osmocom/rtl-sdr.git
  442.         source-type: git
  443.         source-commit: 420086af84d7eaaf98ff948cd11fea2cae71734a
  444.         build-packages:
  445.            - libusb-1.0-0-dev
  446.         cmake-parameters:
  447.            - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  448.  
  449.     pluto:
  450.         plugin: cmake
  451.         source: https://github.com/analogdevicesinc/libiio.git
  452.         source-type: git
  453.         source-tag: v0.21
  454.         cmake-parameters:
  455.            - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  456.  
  457.     bladerf:
  458.         plugin: cmake
  459.         source: https://github.com/Nuand/bladeRF.git
  460.         source-type: git
  461.         source-tag: 2021.02
  462.         build-packages:
  463.            - libusb-1.0-0-dev
  464.         cmake-parameters:
  465.            - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  466.  
  467.     hackrf:
  468.         plugin: cmake
  469.         source: https://github.com/greatscottgadgets/hackrf.git
  470.         source-type: git
  471.         source-tag: v2022.09.1
  472.         source-subdir: host/libhackrf
  473.         build-packages:
  474.            - libusb-1.0-0-dev
  475.         cmake-parameters:
  476.            - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  477.  
  478.     limesuite:
  479.         plugin: cmake
  480.         source: https://github.com/myriadrf/LimeSuite.git
  481.         source-commit: 70e3859a55d8d5353963a5318013c8454594769f
  482.         build-packages:
  483.            - libusb-1.0-0-dev
  484.         stage-packages:
  485.            - libstdc++6
  486.         cmake-parameters:
  487.            - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  488.  
  489.     airspyhf:
  490.         plugin: cmake
  491.         source: https://github.com/airspy/airspyhf.git
  492.         source-type: git
  493.         source-commit: 1af81c0ca18944b8c9897c3c98dc0a991815b686
  494.         build-packages:
  495.            - libusb-1.0-0-dev
  496.         cmake-parameters:
  497.            - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  498.  
  499.     uhd:
  500.         plugin: cmake
  501.         source: https://github.com/EttusResearch/uhd.git
  502.         source-type: git
  503.         source-commit: v4.5.0.0
  504.         source-subdir: host
  505.         build-packages:
  506.            - libusb-1.0-0-dev
  507.             - libboost-all-dev
  508.             - python3-mako
  509.         cmake-parameters:
  510.            - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  511.  
  512.     uhdfpga:
  513.         after: [uhd]
  514.         plugin: nil
  515.         override-build:
  516.            pip install requests
  517.         override-prime: # We only include b2* firmware to keep size down
  518.             $SNAPCRAFT_STAGE/opt/install/sdrangel/lib/uhd/utils/uhd_images_downloader.py -i $SNAPCRAFT_PRIME/opt/install/sdrangel/share/uhd/images -t b2
  519.  
  520.     soapysdr:
  521.         plugin: cmake
  522.         source: https://github.com/pothosware/SoapySDR.git
  523.         source-type: git
  524.         source-tag: soapy-sdr-0.7.1
  525.         cmake-parameters:
  526.            - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  527.  
  528.     soapyremote:
  529.         plugin: cmake
  530.         source: https://github.com/pothosware/SoapyRemote.git
  531.         source-type: git
  532.         source-tag: soapy-remote-0.5.1
  533.         after: [soapysdr]
  534.         build-packages:
  535.            - libavahi-client-dev
  536.             - libavahi-core-dev
  537.         cmake-parameters:
  538.            - -DCMAKE_INSTALL_PREFIX=/opt/install/sdrangel
  539.             - -DCMAKE_PREFIX_PATH=$SNAPCRAFT_STAGE/opt/install/sdrangel
  540.             #- -DSOAPY_SDR_INCLUDE_DIR=$SNAPCRAFT_STAGE/opt/install/sdrangel/include
  541.             #- -DSOAPY_SDR_LIBRARY=$SNAPCRAFT_STAGE/opt/install/sdrangel/lib/libSoapySDR.so
  542.  
  543.  
Advertisement
Add Comment
Please, Sign In to add comment