diff --git a/bin/executable_install_bootstrap_dependencies.sh b/bin/executable_install_bootstrap_dependencies.sh index d0d27e6..91977e3 100644 --- a/bin/executable_install_bootstrap_dependencies.sh +++ b/bin/executable_install_bootstrap_dependencies.sh @@ -29,11 +29,21 @@ elif [[ "$OS" == "Linux" ]]; then libncursesw5-dev \ libgdbm-dev \ libnss3-dev \ + libtag1-dev \ xz-utils \ tk-dev \ libffi-dev \ npm \ tmux \ + ccls \ + mp3info \ + mpv \ + pianobar \ + shellcheck \ + vlc \ + vorbis-tools \ + hunspell \ + faac \ uuid-dev else echo "Linux (Not Ubuntu: $NAME)" diff --git a/bin/executable_install_emms-print-metadata.sh b/bin/executable_install_emms-print-metadata.sh new file mode 100644 index 0000000..a703c3e --- /dev/null +++ b/bin/executable_install_emms-print-metadata.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +EMMS_DIR="${HOME}/.emacs.d/build/emms" +BIN_DIR="${HOME}/bin" +EMMS_EXEC="${BIN_DIR}/emms-print-metadata" + +if [[ -d "${EMMS_DIR}" ]]; then + echo "Updating EMMS in ${EMMS_DIR}..." + git -C "${EMMS_DIR}" pull +else + echo "Cloning EMMS into ${EMMS_DIR}..." + git clone https://git.savannah.gnu.org/git/emms.git "${EMMS_DIR}" +fi + +echo "Building emms-print-metadata..." +cd "${EMMS_DIR}/src" +cc -I/usr/include/taglib emms-print-metadata.c -ltag_c -ltag -lz -o emms-print-metadata + +echo "Linking executable to ${EMMS_EXEC}..." +ln -sf "${EMMS_DIR}/src/emms-print-metadata" "${EMMS_EXEC}" diff --git a/run_once_after_install-packages-linux-post.sh.tmpl b/run_once_after_install-packages-linux-post.sh.tmpl index 9e8cb44..e9ef19c 100644 --- a/run_once_after_install-packages-linux-post.sh.tmpl +++ b/run_once_after_install-packages-linux-post.sh.tmpl @@ -2,5 +2,6 @@ #!/usr/bin/env bash bash ${HOME}/bin/install_fonts.sh +bash ${HOME}/bin/install_emms-print-metadata.sh {{ end -}} \ No newline at end of file