Last active
March 2, 2020 22:36
-
-
Save christian-korneck/4ec7bc4d015369f854befbef614ee069 to your computer and use it in GitHub Desktop.
build ncspot (ncurses spotify client) on macOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source $HOME/.cargo/env | |
brew install pkg-config | |
brew install portaudio | |
git clone --depth=50 --branch=master https://github.com/hrkfdn/ncspot.git hrkfdn/ncspot | |
cd hrkfdn/ncspot | |
export CARGO_FLAGS="--no-default-features --features portaudio_backend,cursive/pancurses-backend --release" | |
export PKG_CONFIG_PATH=`brew --prefix portaudio`/lib/pkgconfig #something like /usr/local/Cellar/portaudio/19.6.0/lib/pkgconfig | |
cargo build $CARGO_FLAGS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is how to build ncspot (a lightweight Spotify terminal client) on macOS (Darwin). Tested with 404ba65.
prereqs:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
build result is in
target/
reference: