Advertisement
Guest User

Untitled

a guest
Jan 5th, 2024
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.30 KB | None | 0 0
  1. # Maintainer: Alexandre Rouma <whatsthetgeek@gmail.com>
  2. # Maintainer: éclairevoyant
  3. # Contributor: Marin Atanasov Nikolov <dnaeon@gmail.com>
  4.  
  5. _pkgname=sdrpp
  6. pkgname="$_pkgname-git"
  7. pkgver=1.0.4.r479.3a06612
  8. pkgrel=1
  9. pkgdesc="The bloat-free SDR receiver"
  10. arch=(x86_64)
  11. url="https://www.sdrpp.org/"
  12. license=(GPL3)
  13. depends=(fftw glew glfw libvolk)
  14. _plugindeps=(airspy airspyhf-git bladerf codec2 hackrf libad9361 libiio libsdrplay limesuite rtaudio rtl-sdr portaudio soapysdr)
  15. makedepends=(cmake git "${_plugindeps[@]}")
  16. optdepends=("${_plugindeps[@]}")
  17. provides=("$_pkgname")
  18. conflicts=("$_pkgname")
  19. source=(
  20.     "$_pkgname::git+https://github.com/AlexandreRouma/SDRPlusPlus.git"
  21.     "rtaudio.patch::https://pb.edward-p.xyz/JAhT8"
  22. )
  23. b2sums=('SKIP' 'SKIP')
  24.  
  25. prepare() {
  26.     cd $_pkgname
  27.     patch --forward --strip=1 --input="$srcdir/rtaudio.patch"
  28. }
  29.  
  30. pkgver() {
  31.     git -C $_pkgname describe --long --tags --exclude nightly | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
  32. }
  33.  
  34. build() {
  35.     cmake -B build -S $_pkgname \
  36.         -DOPT_BUILD_BLADERF_SOURCE=ON \
  37.         -DOPT_BUILD_LIMESDR_SOURCE=ON \
  38.         -DOPT_BUILD_SDRPLAY_SOURCE=ON \
  39.         -DOPT_BUILD_NEW_PORTAUDIO_SINK=ON \
  40.         -DOPT_BUILD_M17_DECODER=ON
  41.     make -C build
  42. }
  43.  
  44. package() {
  45.     make -C build DESTDIR="$pkgdir" install
  46. }
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement