# Template file for 'libyaml'
pkgname=libyaml
version=0.2.1
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="Fast YAML 1.1 parser and emitter library"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="MIT"
homepage="http://pyyaml.org/wiki/LibYAML"
distfiles="https://github.com/yaml/libyaml/archive/${version}.tar.gz"
checksum=1d2aeb87f7d317f1496e4c39410d913840714874a354970300f375eec9303dc4

pre_configure() {
	autoreconf -fi
}

post_install() {
	vlicense LICENSE
}

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