# Template file for 'pianobar'
pkgname=pianobar
version=2016.06.02
revision=2
hostmakedepends="pkg-config"
makedepends="libcurl-devel faad2-devel libao-devel gnutls-devel libgcrypt-devel json-c-devel ffmpeg-devel"
short_desc="A free/open-source, console-based client for Pandora radio"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT"
homepage="http://6xq.net/projects/pianobar/"
distfiles="https://github.com/PromyLOPh/pianobar/archive/${version}.tar.gz"
checksum=977d696c51d8e768be7b9a72480f1277cac99b3d007cd789e31364264dce25c2

do_build() {
	make CC="$CC -std=c99" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" V=1 ${makejobs}
}
do_install() {
	make PREFIX=/usr DESTDIR=${DESTDIR} install
	vlicense COPYING LICENSE
}
