Skip to content

Instantly share code, notes, and snippets.

@christian-korneck
Last active March 2, 2020 22:36
Show Gist options
  • Save christian-korneck/4ec7bc4d015369f854befbef614ee069 to your computer and use it in GitHub Desktop.
Save christian-korneck/4ec7bc4d015369f854befbef614ee069 to your computer and use it in GitHub Desktop.
build ncspot (ncurses spotify client) on macOS
#!/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
@christian-korneck
Copy link
Author

christian-korneck commented Mar 2, 2020

This is how to build ncspot (a lightweight Spotify terminal client) on macOS (Darwin). Tested with 404ba65.

prereqs:

  • rust:
    • curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • homebrew:
    • /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

build result is in target/

reference:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment