Skip to content

Instantly share code, notes, and snippets.

@cjcliffe
Last active July 11, 2016 23:05
Show Gist options
  • Save cjcliffe/89c2c2be0c54fccb65a7fd4ee530c0c6 to your computer and use it in GitHub Desktop.
Save cjcliffe/89c2c2be0c54fccb65a7fd4ee530c0c6 to your computer and use it in GitHub Desktop.
CubicSDR Flatpak Instructions (work-in-progress)
{
"app-id": "com.cubicsdr.App",
"runtime": "org.gnome.Platform",
"runtime-version": "3.20",
"sdk": "org.gnome.Sdk",
"command": "CubicSDR",
"finish-args": [
"--socket=x11",
"--share=ipc",
"--share=network",
"--device=dri",
"--socket=pulseaudio"
],
"modules": [
{
"name": "liquid-dsp",
"config-opts": ["--enable-fftoverride"],
"make-args": ["-j4"],
"sources": [ { "type": "git", "url": "https://github.com/jgaeddert/liquid-dsp" },
{ "type": "shell", "commands": ["cp bootstrap.sh bootstrap"] }
]
},
{
"name": "glu",
"config-opts": ["" ],
"cxxflags": [ "" ],
"make-args": ["-j4"],
"sources": [ { "type": "archive", "url": "https://mesa.freedesktop.org/archive/glu/glu-9.0.0.tar.bz2", "sha256": "1f7ad0d379a722fcbd303aa5650c6d7d5544fde83196b42a73d1193568a4df12"} ]
},
{
"name": "hamlib",
"config-opts": ["" ],
"cxxflags": [ "" ],
"make-args": ["-j4"],
"sources": [ { "type": "git", "url": "https://github.com/N0NB/hamlib.git" } ]
},
{
"name": "SoapySDR",
"cmake": true,
"config-opts": ["-DCMAKE_BUILD_TYPE=Release"],
"make-args": ["-j4"],
"sources": [ {"type": "git", "url": "https://github.com/pothosware/SoapySDR.git" } ]
},
{
"name": "SoapyRTLSDR",
"disabled": true,
"cmake": true,
"config-opts": ["-DCMAKE_BUILD_TYPE=Release"],
"make-args": ["-j4"],
"sources": [ {"type": "git", "url": "https://github.com/pothosware/SoapyRTLSDR.git" } ],
"modules": [
{
"name": "libudev",
"config-opts": [""],
"make-args": [""],
"sources": [ {"type": "git", "url": "" } ]
},
{
"name": "libusb",
"config-opts": [""],
"make-args": [""],
"sources": [ {"type": "git", "url": "https://github.com/libusb/libusb.git" } ]
},
{
"name": "librtlsdr",
"cmake": true,
"config-opts": [""],
"make-args": [""],
"sources": [ {"type": "git", "url": "git://git.osmocom.org/rtl-sdr.git" } ]
}
]
},
{
"name": "SoapySDRPlay",
"disabled": true,
"cmake": true,
"config-opts": ["-DCMAKE_BUILD_TYPE=Release"],
"make-args": ["-j4"],
"sources": [ {"type": "git", "url": "https://github.com/pothosware/SoapySDRPlay.git" } ]
},
{
"name": "SoapyAudio",
"cmake": true,
"config-opts": ["-DCMAKE_BUILD_TYPE=Release", "-DUSE_HAMLIB=1", "-DUSE_AUDIO_PULSE=1", "-DUSE_AUDIO_ALSA=0" ],
"make-args": ["-j4"],
"sources": [ { "type": "git", "url": "https://github.com/pothosware/SoapyAudio.git" } ]
},
{
"name": "wxWidgets",
"config-opts": ["--with-opengl", "--with-libjpeg", "--disable-shared", "--enable-monolithic", "--with-libtiff", "--with-libpng", "--with-zlib", "--disable-sdltest", "--enable-unicode", "--enable-display", "--enable-propgrid", "--disable-webkit", "--disable-webview", "--disable-webviewwebkit", "--with-libiconv=/usr" ],
"cxxflags": [ "-std=c++0x" ],
"make-args": ["-j4"],
"sources": [ { "type": "archive", "url": "https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.0/wxWidgets-3.1.0.tar.bz2", "sha256":"e082460fb6bf14b7dd6e8ac142598d1d3d0b08a7b5ba402fdbf8711da7e66da8" } ]
},
{
"name": "CubicSDR",
"cmake": true,
"config-opts": [ "-DCMAKE_BUILD_TYPE=Release", "-DUSE_HAMLIB=1" ],
"sources": [ { "type": "git", "url": "https://github.com/cjcliffe/CubicSDR.git" } ]
}
]
}

Install flatpak and flatpak-builder using instructions from http://flatpak.org/getting.html

Make a folder, i.e. CubicSDR-flatpak and save com.cubicsdr.App.json there.

In that folder create a build folder and run flatpak-builder:

$ mkdir build
$ flatpak-builder --force-clean --repo=./repo ./build com.cubicsdr.App.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment