Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pkg up
- pkg i curl
- curl https://its-pointless.github.io/setup-pointless-repo.sh |bash
- pkg i build-essential cmake make git libusb pulseaudio portaudio fftw gcc-10 libgfortran5 openblas
- setupclang-gfort-10
- mkdir -p ~/git_ham
- cd ~/git_ham
- git clone https://github.com/libusb/libusb.git
- git clone https://github.com/librtlsdr/librtlsdr.git
- git clone https://github.com/LouisErigHerve/dsd.git
- git clone https://github.com/LouisErigHerve/mbelib.git
- git clone https://github.com/kumanna/itpp.git
- cd itpp
- mkdir build
- cd build
- if cmake -DCMAKE_INSTALL_PREFIX=$PREFIX ..; then
- echo "Building ITPP..."
- if make; then
- make install
- echo "Built. Now doing librtlsdr..."
- else
- echo "Oops, something borked!"
- exit 0
- fi
- else
- echo "Setup failed"
- exit 0
- fi
- cd ~/git_ham/librtlsdr
- mkdir build
- cd build
- ## Patch pthread badly
- sed -i 's/pthread_cancel/pthread_exit/g' /data/data/com.termux/files/home/git_ham/librtlsdr/src/rtl_adsb.c
- if cmake -DCMAKE_INSTALL_PREFIX=$PREFIX ..; then
- echo "Building..."
- if make; then
- make install
- echo "Done. Now doing mbelib..."
- else
- echo "Bork!"
- exit 0
- fi
- else
- echo "Borked!"
- exit 0
- fi
- cd ~/git_ham/mbelib
- mkdir build
- cd build
- if cmake -DCMAKE_INSTALL_PREFIX=$PREFIX ..; then
- echo "Building..."
- if make; then
- make install
- echo "Done. Now doing dsd.."
- else
- echo "Bork!"
- exit 0
- fi
- else
- echo "Borked!"
- exit 0
- fi
- cd ~/ham_git/dsd
- ## Patch dsd for Android
- echo "Patching DSD.."
- sed -i 's/sys\/soundcard.h/linux\/soundcard.h/g' /data/data/com.termux/files/home/git_ham/dsd/include/dsd.h
- mkdir build
- if cmake -DMBE_INCLUDE_DIR=$PREFIX/local/include -D ITPP_INCLUDE_DIR=$PREFIX/include/itpp -D ITPP_LIBRARY=$PREFIX/lib/libitpp_debug.so -DCMAKE_INSTALL_PREFIX=$PREFIX ..; then
- echo "Building..."
- if make; then
- make install
- echo "Done!"
- else
- echo "Bork!"
- exit 0
- fi
- else
- echo "Borked!"
- exit 0
- fi
- echo "librtlsdr and dsd successfully installed!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement