From 7d35c7b272df7221c8f9c66176bec2f9d01e27a9 Mon Sep 17 00:00:00 2001 From: piradio Date: Wed, 22 May 2019 03:01:52 +0200 Subject: [PATCH] Install pivumeter. --- .gitmodules | 3 +++ stage2/04-pirate-radio/00-packages | 5 +++++ stage2/04-pirate-radio/01-run.sh | 5 ++++- stage2/04-pirate-radio/02-run-chroot.sh | 6 ++++++ stage2/04-pirate-radio/03-run.sh | 3 +++ stage2/04-pirate-radio/files/pivumeter | 1 + 6 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .gitmodules create mode 100755 stage2/04-pirate-radio/03-run.sh create mode 160000 stage2/04-pirate-radio/files/pivumeter diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..7c26bef --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "stage2/04-pirate-radio/files/pivumeter"] + path = stage2/04-pirate-radio/files/pivumeter + url = https://github.com//pivumeter diff --git a/stage2/04-pirate-radio/00-packages b/stage2/04-pirate-radio/00-packages index 9d8a612..6c343f7 100644 --- a/stage2/04-pirate-radio/00-packages +++ b/stage2/04-pirate-radio/00-packages @@ -5,3 +5,8 @@ wiringpi python-phatbeat python3-phatbeat pulseaudio +autoconf +automake +libtool +libasound2-dev +libfftw3-dev diff --git a/stage2/04-pirate-radio/01-run.sh b/stage2/04-pirate-radio/01-run.sh index 59ff666..c354353 100755 --- a/stage2/04-pirate-radio/01-run.sh +++ b/stage2/04-pirate-radio/01-run.sh @@ -1,5 +1,8 @@ #!/bin/bash -e -install -v -m 644 files/pusleaudio.service "${ROOTFS_DIR}/etc/systemd/system/" +install -v -m 644 files/pulseaudio.service "${ROOTFS_DIR}/etc/systemd/system/" install -v -m 644 files/client.conf "${ROOTFS_DIR}/etc/pulse/" install -v -m 644 files/default.pa "${ROOTFS_DIR}/etc/pulse/" + +cp -rf files/pivumeter "${ROOTFS_DIR}/root/" +install -v -m 644 files/pivumeter/dependencies/etc/asound.conf "${ROOTFS_DIR}/etc/" diff --git a/stage2/04-pirate-radio/02-run-chroot.sh b/stage2/04-pirate-radio/02-run-chroot.sh index 3d508c3..51b98ef 100755 --- a/stage2/04-pirate-radio/02-run-chroot.sh +++ b/stage2/04-pirate-radio/02-run-chroot.sh @@ -1,3 +1,9 @@ #!/bin/bash -e systemctl enable pulseaudio + +cd /root/pivumeter +aclocal && libtoolize +autoconf && automake --add-missing +./configure && make +make install diff --git a/stage2/04-pirate-radio/03-run.sh b/stage2/04-pirate-radio/03-run.sh new file mode 100755 index 0000000..e3360fb --- /dev/null +++ b/stage2/04-pirate-radio/03-run.sh @@ -0,0 +1,3 @@ +#!/bin/bash -e + +rm -rf "${ROOTFS_DIR}/root/pivumeter" diff --git a/stage2/04-pirate-radio/files/pivumeter b/stage2/04-pirate-radio/files/pivumeter new file mode 160000 index 0000000..5e4afea --- /dev/null +++ b/stage2/04-pirate-radio/files/pivumeter @@ -0,0 +1 @@ +Subproject commit 5e4afea8813beeec2f81d877f3ddc9a84eaa177e