void-packages/srcpkgs/libyaml/template

32 lines
731 B
Bash

# Template file for 'libyaml'
pkgname=libyaml
version=0.2.5
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="Fast YAML 1.1 parser and emitter library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://pyyaml.org/wiki/LibYAML"
distfiles="https://github.com/yaml/libyaml/archive/${version}.tar.gz"
checksum=fa240dbf262be053f3898006d502d514936c818e422afdcf33921c63bed9bf2e
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"
}
}