Something went wrong. Try again.
Mirroring: https://github.com/MunifTanjim/scripts.sh
Something went wrong. Try again.
scripts.sh setup-cmusfm
729 B · 32 lines
at main
123456789101112131415161718192021222324252627282930313233#!/usr/bin/env bash
# House Keeping_GIT_DIR="${HOME}/data/gits"mkdir -p "${_GIT_DIR}"cd "${_GIT_DIR}"
# Initializationif [[ -d "${_GIT_DIR}/cmusfm" ]]; then echo "cmusfm is already installed!" echo "Updating cmusfm..." cd cmusfm git pullelse echo "Installing cmusfm..." git clone --depth 1 https://github.com/Arkq/cmusfm cd cmusfmfi
echo "Installing dependencies..."sudo apt install -y automake libcurl4-openssl-dev libnotify-dev
echo "Running build..."autoreconf --installrm -rf build && mkdir build && cd build../configure --prefix="${HOME}/.local" --enable-libnotifymake && make install
echo "Setting up cmusfm binary: cmusfm"sudo ln -nsf ${HOME}/.local/bin/cmusfm /usr/bin/cmusfm
echo "Done!"