# Template file for 'libyaml'
pkgname=libyaml
version=0.1.4
revision=2
wrksrc="yaml-${version}"
build_style=gnu-configure
short_desc="Fast YAML 1.1 parser and emitter library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="MIT"
homepage="http://pyyaml.org/wiki/LibYAML"
distfiles="http://pyyaml.org/download/libyaml/yaml-${version}.tar.gz"
checksum=7bf81554ae5ab2d9b6977da398ea789722e0db75b86bffdaeb4e66d961de6a37
long_desc="
 LibYAML is a C library for parsing and emitting data in YAML 1.1, a
 human-readable data serialization format."

post_install() {
	vinstall LICENSE 644 usr/share/licenses/${pkgname}
}

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

libyaml_package() {
	pkg_install() {
		vmove usr
	}
}
