Skip to content

Instantly share code, notes, and snippets.

@dnaeon
Created June 1, 2023 07:37
Show Gist options
  • Save dnaeon/38562a5c8f814f319ef4298d4e34acb9 to your computer and use it in GitHub Desktop.
Save dnaeon/38562a5c8f814f319ef4298d4e34acb9 to your computer and use it in GitHub Desktop.
Arch Linux sdrpp-git (AUR)
# Maintainer: Alexandre Rouma <[email protected]>
# Maintainer: éclairevoyant
# Contributor: Marin Atanasov Nikolov <[email protected]>
_pkgname=sdrpp
pkgname="${_pkgname}-git"
pkgver=1.0.4.r479.3a06612
pkgrel=1
epoch=
pkgdesc='Cross-Platform SDR Software'
arch=('x86_64')
url='https://www.sdrpp.org/'
license=('GPL')
depends=(glfw fftw glew libvolk rtaudio)
_plugindeps=(airspy airspyhf-git bladerf hackrf libad9361 libiio libsdrplay limesuite rtl-sdr soapysdr)
makedepends=(cmake git "${_plugindeps[@]}")
optdepends=("${_plugindeps[@]}")
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+https://github.com/AlexandreRouma/SDRPlusPlus")
b2sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --long --tags --exclude nightly | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
}
build() {
cmake -B build \
-S "${_pkgname}" \
-DOPT_BUILD_BLADERF_SOURCE=ON \
-DOPT_BUILD_LIMESDR_SOURCE=ON \
-DOPT_BUILD_SDRPLAY_SOURCE=ON \
-DOPT_BUILD_NEW_PORTAUDIO_SINK=ON \
-DOPT_BUILD_M17_DECODER=ON
make -C build VERBOSE=1
}
package() {
make -C build DESTDIR="${pkgdir}/" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment