void-packages/srcpkgs/yaml-cpp/template

35 lines
953 B
Bash

# Template file for 'yaml-cpp'
pkgname=yaml-cpp
# yaml-cpp may break ABI even without changing the soname; when
# updating, test dependants to determine if revbumps are needed
version=0.6.3
revision=1
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=cmake
configure_args="
-DBUILD_SHARED_LIBS=ON
-DYAML_BUILD_SHARED_LIBS=ON
-DYAML_CPP_BUILD_TOOLS=OFF
-DYAML_CPP_BUILD_TESTS=OFF"
short_desc="YAML parser and emitter in C++"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="MIT"
homepage="https://github.com/jbeder/yaml-cpp"
distfiles="https://github.com/jbeder/${pkgname}/archive/yaml-cpp-${version}.tar.gz"
checksum=77ea1b90b3718aa0c324207cb29418f5bced2354c2e483a9523d98c3460af1ed
post_install() {
vlicense LICENSE
}
yaml-cpp-devel_package() {
depends="yaml-cpp-${version}_${revision}"
short_desc+=" - Development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}