1#!/bin/sh 2apt-get install -y \ 3 automake \ 4 build-essential \ 5 cmake \ 6 g++ \ 7 gdb \ 8 git \ 9 ladspa-sdk \ 10 libasound-dev \ 11 libdbus-1-dev \ 12 libncurses5-dev \ 13 libsbc-dev \ 14 libsndfile-dev \ 15 libspeexdsp-dev \ 16 libtool \ 17 libudev-dev \ 18 wget \ 19 zip 20cd /tmp 21git clone https://github.com/ndevilla/iniparser.git 22cd iniparser 23make 24cp libiniparser.* /usr/local/lib 25cp src/dictionary.h src/iniparser.h /usr/local/include 26chmod 644 /usr/local/include/dictionary.h /usr/local/include/iniparser.h 27chmod 644 /usr/local/lib/libiniparser.a 28chmod 755 /usr/local/lib/libiniparser.so.* 29 30cd /tmp 31git clone https://github.com/google/googletest.git -b v1.8.x 32cd googletest 33mkdir build 34cd build 35cmake .. -DBUILD_SHARED_LIBS=ON \ 36 -DINSTALL_GTEST=ON \ 37 -DCMAKE_INSTALL_PREFIX:PATH=/usr 38make 39make install 40 41# Need to build and install alsa so there is a static lib. 42mkdir -p /tmp/alsa-build && 43 cd /tmp/alsa-build && \ 44 wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.4.1.tar.bz2 && \ 45 bzip2 -f -d alsa-lib-* && \ 46 tar xf alsa-lib-* && \ 47 cd alsa-lib-* && \ 48 ./configure --enable-static --disable-shared && \ 49 make clean && \ 50 make -j$(nproc) all && \ 51 make install 52