sdr++ flatpak resource files

This commit is contained in:
Manu
2025-05-25 19:03:26 +02:00
commit b52804078a
5 changed files with 137 additions and 0 deletions

21
README.md Normal file
View File

@@ -0,0 +1,21 @@
# SDR++ Flatpak
This project provides a simple way to install [SDR++](https://github.com/AlexandreRouma/SDRPlusPlus) in non-mutable Operating Systems such as SteamDeck's SteamOS
__WARNING: Tested only with RTL-TCP source on SteamDeck under SteamOS 3.7.x, other usages might need tweaking__
## Building
### Build binaries and dependencies
```
flatpak-builder --force-clean build-dir org.sdrpp.App.yaml --install build-dir --user
```
### Generate single file bundle
```
flatpak build-bundle repo-dir org.sdrpp.App.flatpak org.sdrpp.App
```
Double click `.flatpak` file and install with Discover

9
org.sdrpp.App.desktop Normal file
View File

@@ -0,0 +1,9 @@
[Desktop Entry]
Name=SDR++
Comment=SDR receiver software
Exec=sdrpp
Icon=org.sdrpp.App
Terminal=false
Type=Application
Categories=AudioVideo;HamRadio;

BIN
org.sdrpp.App.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

96
org.sdrpp.App.yaml Normal file
View File

@@ -0,0 +1,96 @@
id: org.sdrpp.App
runtime: org.kde.Platform
runtime-version: '5.15-23.08'
sdk: org.kde.Sdk
command: sdrpp
finish-args:
- --share=network
- --socket=pulseaudio
- --filesystem=home
- --device=usb
- --socket=x11
- --device=dri
modules:
- name: fftw
buildsystem: autotools
config-opts:
- --enable-float
- --enable-shared
sources:
- type: archive
url: http://www.fftw.org/fftw-3.3.10.tar.gz
sha256: 56c932549852cddcfafdab3820b0200c7742675be92179e59e6215b340e26467
- name: volk
buildsystem: cmake
sources:
- type: git
url: https://github.com/gnuradio/volk.git
commit: 07c1952cd642897af70b6f8bbfeee3a14f54f525
- name: glfw
buildsystem: cmake
sources:
- type: git
url: https://github.com/glfw/glfw.git
commit: 7482de6071d21db77a7236155da44c172a7f6c9e
- name: libusb
buildsystem: autotools
sources:
- type: archive
url: https://github.com/libusb/libusb/releases/download/v1.0.28/libusb-1.0.28.tar.bz2
sha256: 966bb0d231f94a474eaae2e67da5ec844d3527a1f386456394ff432580634b29
- name: rtl-sdr
buildsystem: cmake
config-opts:
- -DINSTALL_UDEV_RULES=OFF
- -DDETACH_KERNEL_DRIVER=ON
sources:
- type: git
url: https://github.com/rtlsdrblog/rtl-sdr-blog.git
branch: v1.3.6
- name: rtaudio
buildsystem: cmake
config-opts:
- -DRTAUDIO_API_PULSE=ON
- -DRTAUDIO_BUILD_STATIC_LIBS=OFF
- -DBUILD_SHARED_LIBS=ON
sources:
- type: git
url: https://github.com/thestk/rtaudio.git
branch: 5.2.0
- name: sdrpp
buildsystem: cmake
build-args: "--socket=x11"
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DUSE_SYSTEM_FFTW=ON
- -DUSE_SYSTEM_VOLK=ON
- -DUSE_SYSTEM_GLFW=ON
- -DOPT_BUILD_RTL_TCP_SOURCE=ON
- -DOPT_BUILD_RTL_SDR_SOURCE=OFF
- -DOPT_BUILD_AIRSPY_SOURCE=OFF
- -DOPT_BUILD_AIRSPYHF_SOURCE=OFF
- -DOPT_BUILD_HACKRF_SOURCE=OFF
- -DOPT_BUILD_SOAPY_SOURCE=OFF
- -DOPT_BUILD_PLUTOSDR_SOURCE=OFF
build-options:
append-ldflags:
- -lX11
append-cxxflags:
- -I/usr/include
sources:
- type: git
url: https://github.com/AlexandreRouma/SDRPlusPlus.git
commit: dd9b8db6c933eb3ed51288522b746b64c79a7fcf
#branch: master
- type: patch
path: remove-stdc++fs.patch
- name: sdrpp-desktop
buildsystem: simple
build-commands:
- install -D org.sdrpp.App.desktop /app/share/applications/org.sdrpp.App.desktop
- install -D org.sdrpp.App.png /app/share/icons/hicolor/256x256/apps/org.sdrpp.App.png
sources:
- type: file
path: org.sdrpp.App.desktop
- type: file
path: org.sdrpp.App.png

11
remove-stdc++fs.patch Normal file
View File

@@ -0,0 +1,11 @@
--- a/core/CMakeLists.txt
+++ b/core/CMakeLists.txt
@@ -157,7 +157,7 @@ else()
endif (NOT USE_INTERNAL_LIBCORRECT)
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- target_link_libraries(sdrpp_core PUBLIC stdc++fs)
+ target_link_libraries(sdrpp_core PUBLIC X11)
endif ()
endif ()