cpp-hocon: build shared library

This commit is contained in:
Michal Vasilek 2022-11-20 13:19:04 +01:00 committed by Đoàn Trần Công Danh
parent c60dbd5448
commit 66c3fdc295
3 changed files with 12 additions and 7 deletions

View File

@ -4205,3 +4205,4 @@ libtraceevent.so.1 libtraceevent-1.6.2_1
libtracefs.so.1 libtracefs-1.4.2_1
libtracecmd.so.1 libtracecmd-3.1.2_1
libkshark.so.2 libkshark-2.1.1_1
libcpp-hocon.so.0.3.0 cpp-hocon-0.3.0_5

1
srcpkgs/cpp-hocon-devel Symbolic link
View File

@ -0,0 +1 @@
cpp-hocon

View File

@ -1,20 +1,23 @@
# Template file for 'cpp-hocon'
pkgname=cpp-hocon
version=0.3.0
revision=4
revision=5
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON"
hostmakedepends="pkg-config"
makedepends="boost-devel leatherman-devel libcurl-devel"
short_desc="C++ port of the Typesafe Config library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://github.com/puppetlabs/cpp-hocon/"
distfiles="https://github.com/puppetlabs/cpp-hocon/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
distfiles="https://github.com/puppetlabs/cpp-hocon/archive/${version}.tar.gz"
checksum=dab02354046f05aca6275c746d7583ee5f71853aa5b1d93529564632e184c3dd
post_install() {
# this package is a static library,
# needs to be rebuild when update boost,
# force an shlib-dependencies
vbin build/bin/libcpp-hocon_test
cpp-hocon-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}