# Description: An almost exact clone of ncmpc with some new features
# URL: https://rybczak.net/ncmpcpp/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: boost libmpdclient
# Optional: mpd fftw taglib

name=ncmpcpp
version=0.10.1
release=1
source=(https://github.com/ncmpcpp/ncmpcpp/archive/$version/$name-$version.tar.gz)

build() {
  cd $name-$version

  prt-get isinst fftw && PKGMK_NCMPCPP+=' --with-fftw --enable-visualizer'
  prt-get isinst taglib && PKGMK_NCMPCPP+=' --with-taglib'

  autoreconf -vfi
  ./configure $PKGMK_NCMPCPP \
    --prefix=/usr \
    --enable-shared='yes' \
    --enable-static='no' \
    --enable-fast-install='yes' \
    --enable-clock \
    --enable-outputs
  make
  make DESTDIR=$PKG install
  rm -rf $PKG/usr/share
}
