# Template file for 'ncmpcpp'
pkgname=ncmpcpp
version=0.9.1
revision=1
build_style=gnu-configure
configure_args=" BOOST_LIB_SUFFIX= --enable-clock --enable-outputs
 --enable-unicode --enable-visualizer --with-curl --with-taglib --with-fftw"
hostmakedepends="pkg-config"
makedepends="boost-devel fftw-devel icu-devel libcurl-devel libmpdclient-devel
 readline-devel taglib-devel"
short_desc="Ncurses mpd client inspired by ncmpc"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://rybczak.net/ncmpcpp"
distfiles="${homepage}/stable/ncmpcpp-${version}.tar.bz2"
checksum=cb814a39c975f5b19c466188433644d1cbdb6db0abe1481d525587b149b36574

# Required by waddwstr() with ncurses on musl
CXXFLAGS="-D_XOPEN_SOURCE=600"

pre_configure() {
	vsed -i '/^docdir/d' {,doc/}Makefile.in
}

post_install() {
	vsconf doc/bindings
	vsconf doc/config
}
