# Template file for 'PAmix'
pkgname=PAmix
version=1.4.1
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config automake autoconf-archive"
makedepends="pulseaudio-devel ncurses-devel"
conf_files="/etc/pamix.conf"
short_desc="Ncurses/Curses Pulseaudio mixer in C++ similar to Pavucontrol"
maintainer="Toyam Cox <Vaelatern@gmail.com>"
license="MIT"
homepage="https://github.com/patroclos/PAmix"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=52c0022bb650d93ee348a7e50156bc94dd9a77a47fff279b07e92f0b40ce145d

case "${XBPS_TARGET_MACHINE}" in
	*-musl) broken="Parts of ncurses, not available on musl";;
esac

pre_configure() {
	autoreconf -fi
}

post_install() {
	vlicense LICENSE
}

# REMARKS:
# Named PAmix instead of pamix to match upstream and prevent misassociation
# with Pluggable Authentication Modules
