# Template file for 'j4status'
pkgname=j4status
version=0.1
revision=2
build_style=gnu-configure
configure_args="--enable-mpd-input"
hostmakedepends="pkg-config libxslt docbook-xsl"
makedepends="libglib-devel yajl-devel libmpdclient-devel NetworkManager-devel
 pulseaudio-devel upower-devel libsensors-devel"
short_desc="Provides a status line using several plugin to retrieve information from your compute"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
homepage="https://j4status.j4tools.org/"
distfiles="http://download.tuxfamily.org/j4tools/j4status/j4status-${version}.tar.xz"
checksum=2ce80e460d6e4091deb28b663be87eceeb5cd533f40db6c5fba44a6adb995341

post_extract() {
	sed -i 's,stdin,_stdin,g;s,stdout,_stdout,g;s,stderr,_stderr,g' input-output/i3bar/src/input.c
}

j4status-devel_package() {
	short_desc+=" - development files"
	depends="libglib-devel ${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/*.so
		vmove usr/lib/pkgconfig
		vmove usr/share/aclocal
	}
}
