# Template file for 'xnoise'.
pkgname=xnoise
version=0.2.21
revision=2
lib32disabled=yes
build_style=gnu-configure
hostmakedepends="pkg-config intltool"
makedepends="gtk+3-devel libtaginfo-devel sqlite-devel
 libnotify-devel libsoup-devel gst-plugins-base1-devel gst-plugins-good1
 desktop-file-utils hicolor-icon-theme"
depends="desktop-file-utils hicolor-icon-theme gst-plugins-good1"
short_desc="Media player for GTK+ with a slick GUI"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://www.xnoise-media-player.com/"
distfiles="https://bitbucket.org/shuerhaaken/xnoise/downloads/xnoise-${version}.tar.gz"
checksum=6c501091ac5a59aa0596978aa8d4750cc12d6bc9a823fd57542d9ab8e3366681

libxnoise_package() {
	short_desc+=" - shared library"
	pkg_install() {
		vmove "usr/lib/libxnoise.so.*"
	}
}

xnoise-devel_package() {
	depends="libxnoise>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
		vmove usr/share/vala
	}
}
