2020-03-21 17:58:03 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euxo pipefail
|
|
|
|
export MAKEFLAGS="-j4"
|
|
|
|
|
|
|
|
cd /tmp
|
|
|
|
|
2020-05-23 17:59:31 +00:00
|
|
|
STATIC_PACKAGES="libusb-1.0-0 libudev1"
|
|
|
|
BUILD_PACKAGES="git make gcc autoconf automake libtool libusb-1.0-0-dev xxd"
|
2020-03-21 17:58:03 +00:00
|
|
|
|
2020-05-23 17:59:31 +00:00
|
|
|
apt-get update
|
2020-05-23 20:53:12 +00:00
|
|
|
apt-get -y install --no-install-recommends $STATIC_PACKAGES $BUILD_PACKAGES
|
2020-03-21 17:58:03 +00:00
|
|
|
|
|
|
|
git clone https://github.com/Microtelecom/libperseus-sdr.git
|
|
|
|
cd libperseus-sdr
|
|
|
|
git checkout 72ac67c5b7936a1991be0ec97c03a59c1a8ac8f3
|
|
|
|
./bootstrap.sh
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
ldconfig /etc/ld.so.conf.d
|
|
|
|
cd ..
|
|
|
|
rm -rf libperseus-sdr
|
|
|
|
|
2020-05-23 17:59:31 +00:00
|
|
|
apt-get -y purge --autoremove $BUILD_PACKAGES
|
|
|
|
apt-get clean
|
|
|
|
rm -rf /var/lib/apt/lists/*
|