Skip to content

Commit

Permalink
add script to build debian package locally
Browse files Browse the repository at this point in the history
  • Loading branch information
gisogrimm committed Jul 15, 2024
1 parent 670c684 commit 06e49de
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packaging/deb/ovbox-cli.control
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Section: contrib/sound
Maintainer: Giso Grimm <[email protected]>
Description: ORLANDOviols consort box client software
The ORLANDOviols consort box (ovbox) is a Raspberry Pi based
solution for remote music collaboration.
Homepage: https://github.com/gisogrimm/ov-client
Conflicts: ovclient
54 changes: 54 additions & 0 deletions packaging/deb/ovbox-cli.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
LICENSE,usr/share/doc/ovclient/
build/ov-client,usr/bin/
build/ov-client_hostname,usr/bin/
build/ov-client_listsounddevs,usr/bin/
build/ovbox_cli,usr/bin/
build/ovbox_version,usr/bin/
build/ovzita-j2n,usr/bin/
build/ovzita-n2j,usr/bin/
installovclient.sh,usr/share/ovclient/tools/
jackrec.html,usr/share/ovclient/
libov/tascar/libtascar/build/libovclienttascar.so.*,usr/lib/
libov/tascar/libtascar/build/libovclienttascardmx.so.*,usr/lib/
libov/tascar/plugins/build/ovclienttascar_*2osc.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_ap_*.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_echoc.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_epicycles.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_granularsynth.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_hoafdnrot.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_hossustain.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_jackrec.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_lightctl.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_ltcgen.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_midi*.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_mask_fig8.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_mask_multibeam.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_mask_sampledgain.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_matrix.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_midicc2osc.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_oscheadtracker.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_oscrelay.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_oscserver.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_ovheadtracker.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_pos2osc.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_route.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_savegains.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_sleep.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_system.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_systime.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_touchosc.so,usr/lib/
libov/tascar/plugins/build/ovclienttascar_waitforjackport.so,usr/lib/
libov/tascar/plugins/build/ovclienttascarreceiver_hrtf.so,usr/lib/
libov/tascar/plugins/build/ovclienttascarreceiver_itu51.so,usr/lib/
libov/tascar/plugins/build/ovclienttascarreceiver_omni.so,usr/lib/
libov/tascar/plugins/build/ovclienttascarreceiver_ortf.so,usr/lib/
libov/tascar/plugins/build/ovclienttascarreceiver_simplefdn.so,usr/lib/
libov/tascar/plugins/build/ovclienttascarsource_cardioidmod.so,usr/lib/
libov/tascar/plugins/build/ovclienttascarsource_omni.so,usr/lib/
node_modules,usr/share/ovclient/
ovclient.css,usr/share/ovclient/
ovclient.js,usr/share/ovclient/
sounds/2138735723541465742.flac,usr/share/ovclient/sounds/
sounds/4180150583.flac,usr/share/ovclient/sounds/
tools/pi/autorun,usr/share/ovclient/tools/
webmixer.js,usr/share/ovclient/
1 change: 1 addition & 0 deletions packaging/deb/ovbox-cli.dep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs, jackd, ${shlibsDepends}
42 changes: 42 additions & 0 deletions tools/build_and_install_debian.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

# minimal error handling:
trap "echo An error occured.;exit 1" ERR

echo "update apt database:"
sudo apt-get update --assume-yes

echo "Install CA certificates:"
sudo apt-get install --no-install-recommends --assume-yes ca-certificates

echo "install git, build-essential and other basic stuff:"
sudo apt-get install --no-install-recommends --assume-yes git build-essential xxd gettext-base lsb-release

echo "install dependencies of cli tool:"
sudo apt-get install --no-install-recommends --assume-yes liblo-dev libcurl4-openssl-dev libasound2-dev libeigen3-dev libfftw3-dev libfftw3-single3 libgsl-dev libjack-jackd2-dev libltc-dev libmatio-dev libsndfile1-dev libsamplerate0-dev nlohmann-json3-dev libxerces-c-dev libgtkmm-3.0-dev libcairomm-1.0-dev

#echo "install runtime dependencies:"
#sudo apt-get install --assume-yes nodejs

echo "clone or update git repo:"
(cd ov-client && git clean -ffx && git pull) || git clone https://github.com/gisogrimm/ov-client

echo "move to development version:"
(cd ov-client && git clean -ffx && git checkout development && git pull)

echo "update submodules:"
make -C ov-client gitupdate

echo "clean repo:"
make -C ov-client clean

echo "build tools:"
make -j 5 -C ov-client

echo "package tools:"
make -C ov-client packaging

echo "install new debian packages:"
sudo apt-get install --no-install-recommends ./ov-client/packaging/deb/debian/*/ovbox-cli_*.deb

echo "successfully installed ovbox system!"

0 comments on commit 06e49de

Please sign in to comment.